/* Text Style */

@font-face {
  font-family: 'AumovioFont';
  src: url('../fonts/AUMOVIOScreen-Regular.CgNY3A0T.woff2') format('woff2'),
       url('../fonts/AUMOVIOScreenVF.woff') format('woff'),
       url('../fonts/AUMOVIOScreenVF.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body,
h1,
input,
a,
.text-bold-style,
.text-regular-style,
.text-regular-small-style,
.mat-stroked-button,
.mat-flat-button,
.password-info {
    font-family: 'AumovioFont' !important;
    font-stretch: normal;
    font-style: normal;
    letter-spacing: normal;
    color: #000000;
    font-size: 15px;
    line-height: 1.13;
}

h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 15px 0 0 0;
    width: 370px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 0 0;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 14px 0 0 0;
}

h4,
input[type=submit],
.text-bold-style,
.mat-stroked-button,
.mat-flat-button {
    font-weight: 700;
}

ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

li {
   display: list-item;
   unicode-bidi: isolate;
   margin: 4px 0;
}

ol {
    display: block;
    list-style-type: decimal;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

ol li {
    margin: 2px 0;
}

/* 减少列表内 p 标签的间距 */
li p {
    margin: 4px 0;
}

label,
div#kc-login-bottom-navigation a,
div#kc-terms-text p,
.text-regular-small-style {
    font-size: 14px;
    line-height: 1.15;
}

/* Links: General Style */

a {
    outline: none;
    color: #4827AF;
    text-decoration: none;
}


/* Links: light-blue */

a.light-blue-link {
    text-decoration: underline;
}

a.light-blue-link:hover {
    text-decoration: none;
}


/* Links: mat-flat-button */

a.mat-flat-button:hover {
    color: #000000;
}


/* ===================== */


/* Footer */

ul#kc-login-footer-links{
    position: absolute;
    bottom: 0px;
    display: flex;
    white-space: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul#kc-login-footer-links li {
    display: inline-block;
    margin: 0;
}

ul#kc-login-footer-links a {
    color: #6b6b6b;
    text-decoration: none;
    display: inline-block;
    margin: 0 32px 0 0;
    padding: 5px 0;
}

ul#kc-login-footer-links a:hover {
    color: #4827AF;
}


/* ===================== */


/* Fields: General Style */

input,
input:focus {
    display: flex;
    flex-direction: row;
    border: none;
    outline: none;
    border-bottom: 2px solid #FF4208;
    width: 328px;
    padding: 5px 0 5px 0;
}

.privacy-policy-form {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

#loginRestartLink {
    display: flex;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: left;
}

/* ===================== */

/* Labels: General Style */

label {
    color: #FF4208;
    display: flex;
    margin: 15px 0 0 0;
    align-items: center;
}

.kc-remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.kc-remember-me input[type="checkbox"] {
  margin: 0;
}

.kc-remember-me label {
  display: inline;
  margin: 0;
  color: #FF4208;
}

/* Buttons: General Style */

input[type=submit],
.mat-stroked-button,
.mat-flat-button {
    width: 128px;
    border-radius: 18px;
    cursor: pointer;
    padding: 12px 24px 12px 24px;
}

input[type=button] {
    width: 128px;
    border-radius: 18px;
    cursor: pointer;
    margin: 0;
    border: none;
    height: auto;
    background-color: #FF4208;
    padding: 10px 16px;
    margin-top: 60px;
    font-weight: bold
}

input[type=button]:hover {
    background-color: #4827AF;
}

.mat-stroked-button,
.mat-flat-button,
div#kc-form-section-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mat-stroked-button {
    height: 24px;
    border: 2px solid #FF4208;
    background-color: none;
    float: left;
    margin: 0 16px 0 0;
}

.mat-stroked-button:hover {
    border: 2px solid #4827AF;
    color: #000000;
}

input[type=submit],
.mat-flat-button {
    border: none;
    height: auto;
    background-color: #FF4208;
    color: #ffffff;
}

input[type=submit] {
    padding-top: 10px;
    margin-top: 10px;
}

input[type=submit]:hover,
.mat-flat-button:hover {
    background-color: #4827AF;
}

/* General */

.display-block-margin-top {
    display: block;
    margin: 16px 0 0 0;
}

.list-style-disc {
    list-style-type: disc;
}

body {
    background-color: #ffffff;
    width: 1024px;
    height: 750px;
    margin: 0 auto;
    overflow: auto;
}

div#kc-info-wrapper {
    margin: 16px 0 0 0;
}

div#logo {
    background-image: url('../img/logo.png');
    background-repeat: none;
    background-size: cover;
    width: 350px;
    height: 100px;
    position: absolute;
    z-index: 99;
    margin: 5px 0 0 23px;
}

div#login-banner {
    background-image: url('../img/login-banner.png');
    background-repeat: no-repeat;
    background-size: cover;
    width: 478px;
    height: 700px;
    margin: 20px 0 0 0;
    position: relative;
}

#portal-name-wrapper {
    color: white;
    position: absolute;
    width: 360px;
    top: 167px;
    left: 56px;
}

#portal-name-wrapper p.portal-welcome {
    margin: 0 0 8px;
    font-family: 'AumovioFont' !important;
    font-size: 18px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 32px;
    letter-spacing: normal;
}

#portal-name-wrapper p.portal-name {
    margin: 0;
    font-size: 40px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 41px;
    letter-spacing: normal;
}

div#kc-form-section-wrapper {
    margin: 0 0 0 500px;
    width: 490px;
    height: 700px;
    position: relative;
}

.password-wrapper {
  display: block;
}

.password-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}


.capslock-warning {
  margin-top: 5px;
}

 #kc-locale-wrapper {
      position: absolute !important;
      top: 0px !important;
     }


  #kc-current-locale-link {
      background-color: #FF4208 !important;
      color: white !important;
      padding: 6px 8px !important;
      font-size: 15px !important;
      border: 0px solid #FF4208 !important;
      border-radius: 4px !important;
      cursor: pointer !important;
      text-decoration: none !important;
      transition: background-color 0.3s ease !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
  }

  .kc-locale-icon {
      width: 17px !important;
      height: 17px !important;
      display: inline-block !important;
  }


  #kc-current-locale-link:hover {
      background-color: #4827AF !important;
  }

  #kc-locale-dropdown {
      position: relative !important;
      display: inline-block !important;
  }

  #kc-locale-dropdown ul {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #ffffff;
      min-width: 160px;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      border-radius: 4px;
      border: 1px solid #ddd;
      z-index: 1000;
      padding: 0;
      margin: 0;
      list-style: none;
  }

  /* 添加透明桥接区域避免 hover 断开 */
  #kc-locale-dropdown::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: 5px;
      background: transparent;
  }

  #kc-locale-dropdown ul li {
      list-style: none !important;
      margin: 0 !important;
      padding: 0 !important;
      display: block !important;
  }

  #kc-locale-dropdown ul li a {
      color: black !important;
      padding: 8px 12px !important;
      text-decoration: none !important;
      display: block !important;
      transition: background-color 0.3s ease !important;
      margin: 0 !important;
  }

  #kc-locale-dropdown ul li a:hover {
      color: #ffffff !important;
      background-color: #4827AF !important;
  }

  #kc-locale-dropdown:hover > ul,
  #kc-locale-dropdown ul:hover {
      display: block;
  }


/* displayInfo */

#kc-info {
    width: 328px;
}


/* ===================== */


/* Messages: (displayMessage) */

.alert {
    color: #6b6b6b;
    margin: 16px 0 0 0;
    padding: 10px 10px 10px 35px;
    width: 283px;
    background-repeat: no-repeat;
    background-size: 15px 15px;
}

.alert-warning {
    background-image: url('../img/icon-warning-yellow.png');
    background-size: 15px 15px;
    background-repeat: no-repeat;
    background-position: left 10px center;
    width: 328px;
    margin: 5px 0 0 0;
    padding: 10px 10px 10px 35px;
    border: 1px solid #FF4208;
    display: flex;
    color: #6b6b6b;
}

.alert-error {
    background-image: url('../img/icon-error@2x.png');
    background-size: 15px 15px;
    background-repeat: no-repeat;
    background-position: left 10px center;
    width: 328px;
    margin: 16px 0 0 0;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ff2d37;
    display: flex;
    color: #6b6b6b;
}

[id=input-error-username] {
    background-image: url('../img/icon-error@2x.png');
    background-size: 15px 15px;
    background-repeat: no-repeat;
    background-position: left 10px center;
    width: 328px;
    margin: 16px 0 0 0;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ff2d37;
    display: flex;
    color: #6b6b6b;
}

[id=input-error-password] {
    background-image: url('../img/icon-error@2x.png');
    background-size: 15px 15px;
    background-repeat: no-repeat;
    background-position: left 10px center;
    width: 328px;
    margin: 16px 0 0 0;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ff2d37;
    display: flex;
    color: #6b6b6b;
}

.kc-feedback-error {
  border: 1px solid #6b6b6b;
  background-color: #fff;
  color: #666;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  border-radius: 3px;
  font-size: 14px;
  max-width: 420px;
}

.kc-feedback-text {
  flex: 1;
}

/* login-page-expired.ftl */

p#instruction1 {
    margin: 16px 0 48px 0;
}

p.instruction:first-child {
    margin-top: 24px;
}

/* login-verify-email.ftl */

.instruction {
    width: 350px;
}

/* error.ftl */

p.error-back-style {
    margin-top: 15px;
}


/* ===================== */


/* terms.ftl */

div#kc-terms-text {
    width: 370px;
    height: 450px;
    padding: 10px 30px 14px 24px;
    margin: 0;
    background-color: #f0f0f0;
    overflow-y: scroll;
    scrollbar-color: #cdcdcd #ffffff;
}

div#kc-terms-text::-webkit-scrollbar {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    width: 17px;
}

div#kc-terms-text::-webkit-scrollbar-thumb {
    background-color: #cdcdcd;
    outline: 1px solid #cdcdcd;
}

/* Ordered list with numbered subitems */

ol.terms-list {
    counter-reset: item;
    padding-left: 0px;
    list-style-type: none;
}

li.terms-section-list-item {
    margin-top: 20px;
}

li.terms-list-item::before {
    counter-increment: item;
    content: counters(item, ".") ". ";
}

li.terms-list-item p {
  margin: 13px 0;
}

p {
  margin: 13px 0;
}

/* Strong and emphasis tags */
strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

/* Select dropdown */
select {
    font-family: 'AumovioFont' !important;
    font-size: 15px;
    color: #000000;
    border: none;
    border-bottom: 2px solid #FF4208;
    padding: 5px 0;
    background-color: transparent;
}

select:focus {
    outline: none;
    border-bottom: 2px solid #4827AF;
}

/* Form elements */
form {
    margin: 0;
}

button {
    font-family: 'AumovioFont' !important;
    cursor: pointer;
}

/* Textarea */
textarea {
    font-family: 'AumovioFont' !important;
    font-size: 15px;
    color: #000000;
    border: 1px solid #FF4208;
    padding: 8px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #4827AF;
}

/* login-config-totp.ftl */

ol#kc-totp-settings {
    list-style: decimal outside;
    width: 450px;
    padding: 5px 0 0 20px;
    margin: 0 0 0 0;
}

ol#kc-totp-settings p {
    margin: 5px 0 0 0;
}

.barcode-link {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.required-label {
    display: flex;
    gap: 3px;
    flex-direction: row;
    align-items: flex-end;
}

.required {
    color:#FF4208;
}

.config-totp-field-error {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#input-error-otp-code {
    color: #ff2d37;
}

#logout-sessions {
    width: 15px;
}


ul#kc-totp-supported-apps li {
    padding: 5px 0 0 10px;
    height: 27px;
    display: block;
    margin: 0;
}

img#kc-totp-secret-qr-code {
    width: 140px;
    height: 140px;
}

/* login-password.ftl */

.login-password-style {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* login-reset-password.ftl */

.login-reset-password-back-style{
    margin-top: 15px;
}

.password-info {
    width: 370px;
    color: #6b6b6b;
    background-color: #f0f0f0;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: left 10px top 10px;
    background-image: url('../img/icon-info-gray.png');
    padding: 10px 10px 10px 30px;
    margin-top: 0;
}

.update-password-title-margin {
    margin-top: 90px;
}

.link-text {
    font-size: 13px;
    line-height: 1.15;
}

input.emailPasswordForgotten {
    margin-bottom: 67px;
}

input#rememberMe {
    width: auto;
    color: #FF4208;
    margin-right: 5px;
}

label[for="rememberMe"] {
    display: inline-block;
}

/* webauthn-authenticate.ftl */

input[type=button].webauthn-authenticate-custom-button-style {
    width: 190px;
}

#close-button-wrapper {
  position: sticky;
  bottom: -20px;
  background-color: white;
  padding: 15px 0;
  text-align: center;
  z-index: 10;
}

#privacy-close-button {
  background-color: #FF4208;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-weight: bold;
}

#privacy-close-button:hover {
  background-color: #4827AF;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.shake {
  animation: shake 0.3s;
}

#legal-introduction-title {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    width: 100%;
    padding-right: 35px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 1.2em;
}

/* privacy modal end */

.kc-banner {
  display: none;
  justify-content: flex-start;
  background: #f0f0f0;
  border-left: 4px solid #FF4208;
  border-radius: 6px;
  color: #000000;
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 10px;
  margin: 8px 0 12px 0;
  max-width: 328px; /* aligns visually with login form width */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.kc-banner__text {
  margin: 0;
  white-space: pre-wrap;
}

.kc-banner__skeleton {
  height: 14px;
  background: #eee;
  border-radius: 4px;
  width: 150px;
}

#kc-remaining-attempts {
    color: #FF4208;
    margin-top: 10px;
    width: 366px;
}

.kc-forbidden-msg {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.25;
    color: #b00020;
  }
  input.kc-forbidden {
    outline: 2px solid #f2b8b5;
  }
