/* === START: login pages === */

/*--------------------------------------------------------------
# Auth Layout
--------------------------------------------------------------*/
body.auth-body {
  --auth-header-height: 131.03px;

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f4f6f9;
}
body.auth-body #cookiealert {
  position: static;
  transform: none;
  display: none;
}
body.auth-body #cookiealert.show {
  display: block;
}
.auth-header {
  padding: 1rem 1.25rem;
  text-align: center;
}
.auth-header__brand img {
  height: 50px;
  width: auto;
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--auth-header-height) + 2rem) 1.25rem 1.25rem;
}
.auth-footer {
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #495057;
}
.auth-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.auth-footer__links a {
  color: #0a2540;
  text-decoration: none;
}
.auth-footer #recaptcha_branding {
  margin-top: 0.75rem;
  background: transparent !important;
}
.auth-footer__links a:hover { text-decoration: underline; }

/*--------------------------------------------------------------
# Login Card
--------------------------------------------------------------*/
.login-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  border: 1px solid #e2e6ea;
  background: #fff;
  overflow: visible;
}

@media (min-width: 992px) {
  .login-card { max-width: 580px; }
}

@media (min-width: 1200px) {
  .login-card { max-width: 640px; }
}

.login-card__header {
  background: #0a2540;
  padding: 20px 28px;
  border-bottom: 3px solid #FFB700;
  border-radius: 12px 12px 0 0;
}
.login-card__title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 2px;
}
.login-card__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.login-card__body {
  padding: 28px 28px 24px;
  border-radius: 0 0 12px 12px;
}
.login-card__body .alert {
  font-size: 0.88rem;
}
.login-card__intro {
  font-size: 0.88rem;
  color: #6c757d;
  margin-bottom: 1.25rem;
}
@media (max-width: 575px) {
  .auth-main {
    padding: calc(var(--auth-header-height) + 1rem) 0.75rem 0.75rem;
  }

  .login-card__header,
  .login-card__body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.login-locked {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
  color: #495057;
}

.login-locked span { font-weight: 500; }

/*--------------------------------------------------------------
# Step Indicator
--------------------------------------------------------------*/
.login-steps {
  display: flex;
  align-items: center;
  margin-top: 16px;
}
.login-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.login-step--active { color: #7dd4f5; }
.login-step--done { color: rgba(255,255,255,0.6); }
.login-step__num {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.login-step--active .login-step__num { background: #09a1e4; color: #fff; }
.login-step--done .login-step__num { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.login-step__divider {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 8px;
  min-width: 16px;
}


/*--------------------------------------------------------------
# Form Elements
--------------------------------------------------------------*/
.login-field {
  margin-bottom: 18px;
}
.login-field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 6px;
  display: block;
}
.login-card .input-group-text {
  font-size: 1rem;
}

.login-password-toggle {
  width: 46px;
  padding: 0;
  background-color: #f8f9fa;
  border: 1px solid #e2e2e6;
  border-left: 1px solid rgb(173, 181, 189);
}

.login-password-toggle:hover,
.login-password-toggle:focus {
  background-color: #f8f9fa;
  border-color: #e2e2e6;
  box-shadow: none;
}

/*--------------------------------------------------------------
# Account Type Pill
--------------------------------------------------------------*/
.login-type-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef7fd;
  border: 1px solid rgba(9,161,228,0.3);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #0a2540;
  font-weight: 500;
  margin-bottom: 20px;
}
.login-type-pill a {
  margin-left: auto;
  font-size: 0.78rem;
  color: #09a1e4;
  text-decoration: none;
}
.login-type-pill a:hover { text-decoration: underline; }


/*--------------------------------------------------------------
# OTP / MFA Intro Block
--------------------------------------------------------------*/
.login-otp-intro {
  background: #eef7fd;
  border-left: 3px solid #09a1e4;
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.login-otp-intro p {
  font-size: 0.88rem;
  color: #495057;
  margin: 0;
  line-height: 1.5;
}

/*--------------------------------------------------------------
# Card Actions + Links
--------------------------------------------------------------*/
.login-card__actions {
  margin-top: 8px;
}
.login-card__links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.login-card__links a,
.login-card__links .btn-link {
  font-size: 0.82rem;
  color: #09a1e4;
  text-decoration: none;
  padding: 0;
}
.login-card__links a:hover,
.login-card__links .btn-link:hover { text-decoration: underline; }

/*--------------------------------------------------------------
# Custom Account Type Dropdown
--------------------------------------------------------------*/
.custom-acct-wrap {
  position: relative;
}
.custom-acct-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1.5px solid #adb5bd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
  user-select: none;
}
.custom-acct-trigger:hover { border-color: #09a1e4; }
.custom-acct-trigger--empty .custom-acct-trigger__label { color: #6c757d; }
.custom-acct-trigger.is-open {
  border-color: #FFB700;
  border-bottom-color: transparent;
  border-radius: 6px 6px 0 0;
}
.custom-acct-trigger__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.custom-acct-trigger__icon {
  width: 28px; height: 28px;
  background: #eef7fd;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #09a1e4;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.custom-acct-trigger__label {
  font-size: 0.92rem;
  font-weight: 500;
  color: #212529;
}
.custom-acct-trigger__arrow {
  width: 8px; height: 8px;
  border-right: 2px solid #adb5bd;
  border-bottom: 2px solid #adb5bd;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s, border-color 0.15s;
  flex-shrink: 0;
}
.custom-acct-trigger.is-open .custom-acct-trigger__arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: #FFB700;
}
.custom-acct-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1.5px solid #FFB700;
  border-top: none;
  border-radius: 0 0 6px 6px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
}
.custom-acct-dropdown.is-open { display: block; }
.custom-acct-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: #212529;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}
.custom-acct-option:last-child { border-bottom: none; }
.custom-acct-option:hover { background: #eef7fd; }
.custom-acct-option--selected {
  background: #eef7fd;
  color: #09a1e4;
  font-weight: 600;
}
.custom-acct-option__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  background: #f4f6f9;
  color: #6c757d;
  transition: background 0.1s, color 0.1s;
}
.custom-acct-option:hover .custom-acct-option__icon,
.custom-acct-option--selected .custom-acct-option__icon {
  background: #eef7fd;
  color: #09a1e4;
}
.password-requirements {
  margin-top: 8px;
  font-size: 0.82rem;
}

.password-requirement {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
  color: #495057;
  transition: color 0.15s ease;
}

.password-requirement i {
  width: 14px;
  font-size: 0.7rem;
  text-align: center;
}

.password-requirement.is-valid { color: #198754; }
.password-requirement.is-invalid { color: #dc3545; }


/* === END: login pages === */
