@import url("../node_modules/inter-ui/inter.css");
@import url("./otp-input.css");

:root {
  --colors-primary-base: #313335;
  --colors-grays-white: #fff;
  --colors-grays-gray-3: #d9d9d9;
  --shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 8px 0 rgba(0, 0, 0, 0.12);
  --colors-text-gray: #666;
  --colors-text-black: #121212;
  --colors-text-white: #fff;
  --colors-error: #ff5252;
  --colors-warning: #fb8c00;
  --colors-success: #4caf50;
  --colors-info: #2196f3;
  --colors-blue-link: #3059b3;
  --font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
}

html,
body,
div,
span,
applet,
object,
iframe,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  font-family: "Inter", sans-serif;
  letter-spacing: normal;
  color: var(--colors-text-black) !important;
}

*:focus-visible {
  outline: 2px solid var(--colors-primary-base);
}

body {
  background: none;
  background-color: white;
}

button,
input,
select,
textarea {
  background-color: transparent;
  border-style: none;
}

[aria-controls] {
  cursor: pointer;
}

@media only screen and (min-width: 600px) {
  body {
    height: 100vh;
    display: flex;
    background-size: 100%;
    align-items: center;
    justify-content: center;
    background-position: center center;
    background-blend-mode: screen;
    background: radial-gradient(
        circle at 40% center,
        rgba(19 164 56 / 0.15) 0,
        rgba(19, 164, 56, 0) 50%
      ),
      radial-gradient(
        circle at 50% 75%,
        rgba(95 61 196 / 0.15) 0,
        rgba(19, 164, 56, 0) 50%
      ),
      radial-gradient(
        circle at 60% center,
        rgba(0 82 255 / 0.15) 0,
        rgba(0, 82, 255, 0) 50%
      );
  }
}

body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  margin: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#rc-anchor-container {
  width: 100%;
}

#kc-info {
  padding-top: 8px;
}

#kc-info-message p {
  padding: 10px 0;
}

#kc-info-message-action-complete {
  font-size: 16px !important;
}

#kc-info-message-action-complete .fas {
  padding-right: 3px;
}

#kc-error-message {
  display: block;
  font-size: 16px;
  margin: 16px 0;
  padding: 8px;
  position: relative;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
  background-color: var(--colors-error) !important;
  border-color: var(--colors-error) !important;
  border-radius: 4px;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.14),
    0 0 0 0 rgba(0, 0, 0, 0.12);
}

#kc-error-message .instruction {
  align-items: center;
  border-radius: inherit;
  display: flex;
  padding: 8px;
}

.instruction-title {
  font-weight: 700 !important;
  letter-spacing: 0.0125em !important;
}

.deep-alert {
  display: grid;
  grid-template-columns: max-content auto;
  position: relative;
  padding: 16px;
  overflow: hidden;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
  border-radius: 8px;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.14),
    0 0 0 0 rgba(0, 0, 0, 0.12);

  & .deep-alert__icon {
    color: currentColor !important;
    margin-right: 16px !important;
    span {
      color: currentColor !important;
    }
  }

  .deep-alert__content {
    color: currentColor !important;
    word-break: break-word;

    & .deep-alert-title {
      align-items: center;
      border-radius: inherit;
      color: currentColor !important;
      font-weight: 600;
    }

    & b {
      color: currentColor !important;
    }
  }

  &.deep-success {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
  }

  &.deep-danger {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
  }

  &.deep-warning {
    background-color: #fff3cd !important;
    border-color: #ffeeba !important;
    color: #856404 !important;
  }

  &.deep-info {
    background-color: #e1f5fe !important;
    border-color: #bee5eb !important;
    color: #0277bd !important;
  }
}

/* / ERROR MESSAGES & ALERTS */

.deep-back-to-application {
  text-align: center;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--colors-text-black) !important;
}

.text-h5 {
  font-family: var(--font-family) !important;
  font-weight: 500 !important;
}

.text-h6 {
  font-family: var(--font-family) !important;
  font-weight: 700 !important;
}

a {
  color: var(--colors-blue-link) !important;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  text-decoration: underline;
}

.font-weight-bold {
  font-weight: bold !important;
}

#kc-error-message .instruction {
  color: var(--colors-text-white) !important;
}

.reset-login {
  padding-bottom: 10px;
}

.reset-login #reset-login {
  color: var(--colors-text-black) !important;
  font-size: 0.875rem;
}

.deep-subheader {
  font-size: 0.875rem;
  color: var(--colors-text-gray) !important;
}

.deep-footer {
  font-size: 0.75rem;
  line-height: 14px;
  text-decoration: none;
  padding: 16px 8px;
  margin: 10px auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  color: var(--colors-text-black) !important;
}

.deep-footer a {
  color: var(--colors-text-black) !important;
}

.deep-footer-links {
  display: flex;
  column-gap: 32px;
}

.deep-text-grey {
  color: var(--colors-text-gray) !important;
}

.deep-footer {
  padding: 10px 20px;
}

.deep-footer #kc-current-locale-link {
  padding: 0;
}

/* LOCALE */
#kc-current-locale-link {
  text-decoration: none;
}

#kc-current-locale-link::after {
  padding-left: 5px;
  font-family: "Font Awesome 6 Pro";
  font-weight: 400;
  content: "\f078"; /* Down chevron */
  transition: transform 0.2s ease;
}

/* Change chevron when menu is expanded */
#kc-current-locale-link[aria-expanded="true"]::after {
  content: "\f077"; /* Up chevron */
}

.deep-locale-list {
  position: absolute;
  transition: all 0.3s ease;
  transform: scale(0);
  transform-origin: 0 0;
  padding-left: 0 !important;
  box-shadow: var(--shadow);
  border-radius: 8px;
  background: #fff;
  display: none;
  opacity: 0;
}

.deep-locale-list-item {
  display: block;
  width: 100%;
}

.deep-locale-item {
  width: 100%;
  padding: 1em;
  display: inline-block;
  box-sizing: border-box;
  text-decoration: none;
}

.deep-locale-item:hover {
  background: var(--colors-grays-gray-3);
  text-decoration: none;
}

/* Show menu when aria-expanded is true (keyboard navigation) */
.menu-button-links button[aria-expanded="true"] + .deep-locale-list {
  display: block;
  opacity: 1;
  transform: scaleY(1);
}

/* Ensure focus styling */
.deep-locale-item:focus {
  background: var(--colors-grays-gray-3);
}

@media only screen and (max-width: 600px) {
  .deep-footer #kc-current-locale-link:hover + .deep-locale-list {
    transform: translate(-10px, -140px);
  }

  .deep-footer .deep-locale-list:hover {
    transform: translate(-10px, -140px);
  }
}

.header-app-logo {
  display: block;
}

#kc-page-title {
  padding-top: 30px;
  padding-bottom: 10px;
  font-size: 1.5rem !important;
  line-height: 2rem;
  font-weight: 500 !important;
}

.kc-page-title {
  position: relative;
  margin: 16px 0;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
}

.wrap-text {
  white-space: normal;
}

/* Terms and Conditions */
.terms {
  font-size: 0.875rem !important;

  & label a {
    color: #1867c0 !important;

    &:link {
      text-decoration: none;
    }

    &:visited {
      text-decoration: none;
    }

    &:hover {
      text-decoration: underline;
    }

    &:active {
      text-decoration: underline;
    }
  }
}

/* app-container */
.cls-app-container {
  max-width: 1040px !important;
  padding: 0;
  margin-right: auto !important;
  margin-left: auto !important;
}

.cls-app-wrapper-container {
  margin: 0;
  padding: 0;
  max-width: 450px;
}

.cls-app-wrapper-container section {
  position: relative;
  margin-left: 0;
  margin-right: 0;
}

.cls-app-title {
  text-align: center !important;
  margin: 30px 0;
  line-height: 1.125;
}

.section-item {
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow-wrap: break-word;
}

.section-item-start {
  order: -1;
}

/* FONTAWESOME */
/*
* Adjustments for Font Awesome icons in combination with vuetify. The Font
* Awesome icons has no spacing around the icons like material icons. So we make
* them smaller to match the size from the material icons (Vuetify default).
*/

.fa,
.far,
.fas,
.fad,
.fal,
.fat {
  font-size: 18px !important;
  padding: 3px;
}

/* /FONTAWESOME */

.cls-custom-login-fields .v-label {
  left: 0px;
  right: auto;
  position: absolute;
  padding: 0 4px;
  background: #ffffff;
}

/* .autofill-fix.v-text-field .v-label:not(.v-label--active) {
  left: 0 !important;
  right: auto;
  transform: translateY(-24px) scale(0.75);
  background: #ffffff;
} */

.login-input-fields-container {
  position: relative;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-input-fields-wrapper {
  position: relative;
}

.login-input-fields-container:focus-within label {
  color: var(--colors-primary-base);
}

.login-input-field {
  width: 100%;
  border: 1px solid var(--colors-primary-base);
  box-sizing: border-box;
  border-radius: 4px;
  padding: 16px 10px;
  font-size: 16px;
  height: 48px;
}

.login-input-field:focus {
  border-color: var(--colors-primary-base);
  outline: 1px solid var(--colors-primary-base);
  caret-color: var(--colors-primary-base);
}

.login-input-field:focus-visible {
  outline: 1px solid var(--colors-primary-base);
}

.login-password-field {
  padding-right: 42px;
}

.button-show-password {
  position: absolute !important;
  top: 12px;
  right: 10px;
  transition: none !important;
}

.button-show-password.fa-eye-slash {
  right: 9px;
  font-size: 16px;
}

.deep-btn {
  border: none;
  box-shadow: none !important;
  text-transform: none !important;
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 500;
  letter-spacing: 0.0892857143em;
  justify-content: center;
  position: relative;
  text-decoration: none !important;
  text-indent: 0.0892857143em;
  transition-duration: 0.28s;
  transition-property: box-shadow, transform, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  line-height: normal;
  text-align: center;
  padding: 0 32px;
  color: var(--colors-text-black) !important;

  &:disabled {
    box-shadow: none;
    opacity: 1;
    background: var(--colors-grays-gray-3) !important;
    pointer-events: none;
  }
}

.deep-btn-large {
  display: flex;
  font-size: 1rem;
  height: 42px !important;
  padding: 0 24px;
}

.deep-btn-block {
  flex: 1 0 auto;
  min-width: 100% !important;
}

.deep-btn-primary {
  background-color: var(--colors-primary-base) !important;
  border-color: var(--colors-primary-base) !important;
  color: white !important;
  font-weight: 500 !important;
  letter-spacing: normal;
}

.deep-btn-default {
  color: var(--colors-primary-base) !important;
  caret-color: var(--colors-primary-base) !important;
  background-color: #eee !important;
  border-color: #eee !important;
  font-weight: 500 !important;
  letter-spacing: normal;
}

.deep-btn-outlined {
  border: thin solid !important;
  background-color: white !important;
  border-color: var(--colors-primary-base) !important;
  color: var(--colors-text-black) !important;
}

.deep-btn-text {
  background-color: unset !important;
  font-weight: 500 !important;
  letter-spacing: normal;
  font-size: 0.875rem;
  padding: 0 !important;
}

.deep-btn-text:hover {
  text-decoration: underline !important;
}

.input-error-msg {
  font-size: 0.875rem;
  line-height: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  color: #ff5252 !important;
  caret-color: #ff5252 !important;
}

::-webkit-credentials-auto-fill-button {
  position: absolute;
  right: 42px;
}

.kc-form-social-account-list {
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kc-form-social-account-list-button {
  color: black !important;
}

.kc-form-social-account-list-button:hover {
  text-decoration: none;
}

.back-to-login {
  display: flex;
  justify-content: center;
}

.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.divider hr {
  flex: 1;
  border-color: #d9d9d9;
  border-radius: 0px;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
}

.kc-logo-idp-deepid,
#social-deepid span :first-child {
  vertical-align: text-top;
}

.kc-logo-idp-deepid:before,
#social-deepid span :first-child:before {
  content: url("../img/svg/icon-deepid.svg");
  display: inline-block;
  padding: 0 7px;
}

.button-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding-top: 16px;
  gap: 10px;
}

.button-container button,
.button-container input {
  flex: initial;
}

.button-container > a {
  order: 1;
}

.button-container > input {
  order: 2;
}

#kc-form-options {
  margin: 10px auto;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  flex-direction: row;
  justify-content: space-between;

  flex-direction: column;
  gap: 10px;
  width: 100%;
}

#kc-form-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

#kc-form-buttons.g-recaptcha-wrapper {
  gap: 0;
}

#kc-form-buttons a,
#kc-form-buttons input,
#kc-form-buttons button {
  display: flex;
  flex: 1;
  font-size: 0.875rem;
  text-decoration: none;
  flex-grow: 1;
  text-align: center;
  justify-content: center;
  height: 42px !important;
  align-items: center;
}

#kc-form-buttons > input:first-child {
  order: 2;
}

#kc-form-buttons div {
  display: flex;
  width: 100%;
}

/* Checkbox input */
.checkbox {
  display: inline-flex;
  flex: 1 1 auto;
  font-size: 16px;
  letter-spacing: normal;
  max-width: 100%;
  text-align: left;
  gap: 16px;

  & input[type="checkbox"] {
    margin-right: 8px;
    margin-left: 4px;
    transform: scale(1.4); /* Maintain scaling */
    -webkit-transform: scale(1.4); /* WebKit-specific scaling */
    max-height: 24px;
    background-color: transparent;
    border-style: none;
    color: var(--colors-text-black);
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    accent-color: var(--colors-text-black);
  }

  & label {
    font-size: 0.875rem !important;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-height: 8px;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
    flex: 1 1 auto;
    height: auto;
  }
}

/* Required Actions */
.required-actions-list {
  margin: 10px 0;
}

.required-actions-list-item {
  margin-left: 0;
  padding-left: 5px;
}

.deep-input-hint-container {
  flex: 1 1 auto;
  font-size: 12px;
  min-height: 14px;
  min-width: 1px;
  opacity: 0.7;
  position: relative;
  padding-inline: 0 16px;
  padding-top: 6px;

  & .deep-input-hint {
    line-height: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    transition-duration: 150ms;
  }
}

/* Summary Details */
summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-weight: bold;
}

summary::after {
  font-family: "Font Awesome 6 Pro";
  content: "\f078"; /* Down chevron */
  transition: 0.2s;
}

/* Change chevron when menu is expanded */
details[open] > summary::after {
  content: "\f077"; /* Up chevron */
}

summary::-webkit-details-marker {
  display: none;
}

summary {
  color: #30353b;
  border-radius: 5px;
}

details[open] summary {
  border-radius: 5px 5px 0 0;
}

details {
  border-radius: 5px;
}

.deep-details-collapse {
  & summary {
    cursor: pointer;
  }
}

.inline-text-with-link {
  padding-top: 10px;
  font-size: 0.875rem;
  color: var(--colors-text-gray) !important;
  & a {
    color: var(--colors-text-black) !important;
  }
}

#static-pwd-policy-disclaimer {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;

  & .policy-disclaimer-list {
    font-weight: 400;
  }
}

.dialog {
  top: 50%;
  left: 50%;
  width: 40vw;
  position: absolute;
  border-radius: 10px;
  transform: translate(-50%, -50%);
}

@media only screen and (max-width: 600px) {
  .dialog {
    width: 100%;
  }
}

.dialog .content {
  padding: 28px;
}

.dialog .title {
  font-weight: 500;
  letter-spacing: 0.0125em;
  padding: 16px 24px 10px;
}

.dialog .actions {
  align-items: center;
  display: flex;
  padding: 8px;
}

dialog::backdrop {
  opacity: 0.5;
  background-color: #898989;
}

.spacer {
  flex-grow: 1 !important;
}

/* OTP FIELD */
.one-time-code {
  margin-top: 30px;
}

.one-time-code label {
  font-size: 1.15em;
  font-weight: 600;
}

.one-time-code .instruction .login-input-label {
  font-weight: 600;
}

/* MOBILE */
@media only screen and (max-width: 600px) {
  .button-container {
    flex-direction: column;
  }

  .button-container > a {
    order: 2;
  }

  .button-container > input {
    order: 1;
  }

  #kc-form-buttons a,
  #kc-form-buttons input,
  #kc-form-buttons button {
    flex: auto;
    align-items: center;
  }

  #kc-form-buttons {
    flex-direction: column;
  }

  #kc-form-buttons div {
    flex-direction: column;
  }

  #kc-form-buttons > input:first-child {
    order: unset;
  }

  .deep-footer {
    row-gap: 15px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media only screen and (min-width: 600px) {
  .kc-container-wrapper {
    width: 450px;
  }

  .cls-app-wrapper-container section {
    padding: 40px;
    border-radius: 16px;
    background: var(--colors-grays-white, #fff);
  }
}

@media only screen and (max-width: 600px) {
  .kc-container-wrapper {
    padding-top: 20px;
    align-items: center;
    margin-left: 30px;
    margin-right: 30px;
  }
}
