@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.auth-body-login {
  --auth-teal: #0a5c54;
  --auth-teal-hover: #084841;
  --auth-teal-rgb: 10, 92, 84;
  --auth-tab-idle: #e6f4f2;
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: auto;
  isolation: isolate;
  background-color: #0a5c54;
  background-image:
    linear-gradient(180deg, rgba(10, 92, 84, 0.72) 0%, rgba(8, 72, 65, 0.88) 55%, rgba(4, 32, 28, 0.94) 100%),
    url("../img/auth-login-bg.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0f172a;
}

.auth-body-login,
.auth-body-login button,
.auth-body-login input {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-body-login .auth-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-body-login .auth-decor-orb {
  position: absolute;
  top: -6rem;
  right: -4rem;
  width: min(28rem, 70vw);
  height: min(28rem, 70vw);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}

.auth-body-login .auth-decor-plane {
  position: absolute;
  top: 7%;
  left: 4%;
  width: min(9.5rem, 28vw);
  opacity: 0.95;
}

.auth-body-login .auth-decor-plane svg {
  display: block;
  width: 100%;
  height: auto;
}

.auth-body-login .auth-shell-login {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  place-items: center;
  min-height: 100%;
  padding: 1.5rem 1rem 1.25rem;
  box-sizing: border-box;
}

.auth-body-login .auth-card-login {
  width: min(100%, 26.5rem);
  margin: 0;
  padding: 1.75rem 1.85rem 1.6rem;
  border-radius: 6px;
  border: 0;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.08),
    0 18px 48px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
}

.auth-body-login .auth-logo-block {
  margin: 0 0 0.85rem;
  padding: 0;
}

.auth-body-login .auth-logo {
  display: flex;
  justify-content: center;
  margin: 0;
}

.auth-body-login .auth-logo-img {
  display: block;
  width: min(100%, 15.5rem);
  height: auto;
  max-height: 4.25rem;
  object-fit: contain;
}

.auth-body-login .auth-portal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0 0 0.15rem;
}

.auth-body-login a.auth-portal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  background: var(--auth-tab-idle);
  color: var(--auth-teal);
}

.auth-body-login a.auth-portal-tab:hover {
  text-decoration: none;
  color: var(--auth-teal);
  filter: brightness(0.98);
}

.auth-body-login a.auth-portal-tab.is-active,
.auth-body-login a.auth-portal-tab.is-active:hover {
  background: var(--auth-teal);
  color: #fff;
}

.auth-body-login .auth-login-title {
  margin: 0.85rem 0 0.95rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--auth-teal);
  text-transform: uppercase;
}

.auth-body-login .auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-body-login .field {
  display: grid;
  gap: 0.22rem;
  margin: 0;
}

.auth-body-login .field span {
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}

.auth-body-login .field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border-radius: 4px;
  border: 1px solid #d7dee7;
  background: #fff;
  color: #0f172a;
  font-size: 0.875rem;
  box-shadow: none;
  outline: none;
}

.auth-body-login .field input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.auth-body-login .field input:focus {
  background: #fff;
  border-color: var(--auth-teal);
  box-shadow: 0 0 0 3px rgba(var(--auth-teal-rgb), 0.16);
}

.auth-body-login .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  min-height: 2.85rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid #ff6423;
  background: #ff6423;
  color: #fff;
  cursor: pointer;
  box-shadow: none;
}

.auth-body-login .auth-submit:hover,
.auth-body-login .auth-submit:focus {
  background: #e04e12;
  border-color: #e04e12;
  color: #fff;
}

.auth-body-login .auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-body-login .auth-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.95rem;
  font-size: 0.8125rem;
}

.auth-body-login .auth-link-row a {
  color: var(--auth-teal);
  font-weight: 600;
  text-decoration: none;
}

.auth-body-login .auth-link-row a:hover {
  color: var(--auth-teal);
  text-decoration: underline;
}

.auth-body-login .auth-contact-line {
  margin: 1.15rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid #e8eef3;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #64748b;
  letter-spacing: 0.01em;
}

.auth-body-login .auth-contact-line a {
  color: #64748b;
  text-decoration: none;
}

.auth-body-login .auth-contact-line a:hover {
  color: var(--auth-teal);
  text-decoration: underline;
}

.auth-body-login .auth-contact-sep {
  margin: 0 0.35rem;
  color: #94a3b8;
}

.auth-body-login .auth-footer {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: 100%;
  background: none;
  border: 0;
  padding: 0.75rem 1rem 1.1rem;
}

.auth-body-login .auth-footer-line {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.auth-body-login .auth-footer-sep {
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.55);
}

.auth-body-login .auth-footer-copy,
.auth-body-login a.auth-footer-item {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 400;
}

.auth-body-login a.auth-footer-item:hover {
  color: #fff;
  text-decoration: underline;
}

.auth-body-login .hide {
  display: none !important;
}

.auth-body-login .password-toggle-icon {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.auth-body-login .error-message,
.auth-body-login .error {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-body-login .message {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 90;
  max-width: 22rem;
  padding: 10px 14px;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
  font-size: 0.85rem;
}

.auth-body-login .otp-note {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.auth-body-login .trust-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #334155;
}

.auth-body-login .trust-row input {
  margin-top: 0.15rem;
}

/* Same login background on agency registration */
.register-wrapper.auth-register-bg {
  background-color: #0a5c54;
  background-image:
    linear-gradient(180deg, rgba(10, 92, 84, 0.72) 0%, rgba(8, 72, 65, 0.88) 55%, rgba(4, 32, 28, 0.94) 100%),
    url("../img/auth-login-bg.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

.register-wrapper.auth-register-bg::before {
  background: none;
}

.register-wrapper.auth-register-bg .auth-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.register-wrapper.auth-register-bg .auth-decor-orb {
  position: absolute;
  top: -6rem;
  right: -4rem;
  width: min(28rem, 70vw);
  height: min(28rem, 70vw);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}

.register-wrapper.auth-register-bg .auth-decor-plane {
  position: absolute;
  top: 7%;
  left: 4%;
  width: min(9.5rem, 28vw);
  opacity: 0.95;
}

.register-wrapper.auth-register-bg .auth-decor-plane svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 40rem) {
  .auth-body-login .auth-footer-line {
    font-size: 0.7rem;
  }

  .auth-body-login .auth-footer-sep {
    margin: 0 0.3rem;
  }

  .auth-body-login .auth-decor-plane {
    top: 3%;
    left: 2%;
    width: 5.5rem;
    opacity: 0.7;
  }

  .auth-body-login a.auth-portal-tab {
    font-size: 0.65rem;
    min-height: 2.2rem;
  }
}

/* Register form fits the viewport, no page scroll */
body:has(.auth-register-bg) {
  overflow: hidden !important;
  height: 100%;
}
.register-wrapper.auth-register-bg {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding: 16px 20px;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}
.register-wrapper.auth-register-bg .login-card {
  width: min(1080px, 100%);
  max-height: calc(100vh - 32px);
  padding: 22px 28px 18px;
  overflow: hidden;
  border-radius: 18px;
}
.register-wrapper.auth-register-bg .logo-wrapper {
  margin: 0 0 6px;
}
.register-wrapper.auth-register-bg .logo-wrapper img,
.register-wrapper.auth-register-bg .login_logo {
  max-height: 54px;
  width: auto;
}
.register-wrapper.auth-register-bg h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 2px 0 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.register-wrapper.auth-register-bg h6 {
  margin: 8px 0 8px !important;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.register-wrapper.auth-register-bg .form-group {
  margin-bottom: 10px !important;
}
.register-wrapper.auth-register-bg .row {
  --bs-gutter-x: 0.85rem;
  --bs-gutter-y: 0.35rem;
}
.register-wrapper.auth-register-bg .form-control,
.register-wrapper.auth-register-bg .form-select,
.register-wrapper.auth-register-bg .input-wrapper input {
  min-height: 40px !important;
  height: 40px !important;
  padding: 6px 12px !important;
  font-size: 14px;
  border-radius: 8px;
}
.register-wrapper.auth-register-bg .select2-container--default .select2-selection--single {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 8px;
}
.register-wrapper.auth-register-bg .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px !important;
  padding-left: 12px !important;
}
.register-wrapper.auth-register-bg .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px !important;
}
.register-wrapper.auth-register-bg .form-text {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.3;
}
.register-wrapper.auth-register-bg .register_btn,
.register-wrapper.auth-register-bg button,
.register-wrapper.auth-register-bg input[type="submit"] {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
}

/* portal mobile 20260929 */
@media (max-width: 991.98px) {
    body:has(.auth-register-bg) {
        overflow: auto !important;
        height: auto !important;
    }
    .register-wrapper.auth-register-bg {
        height: auto;
        min-height: 100vh;
        max-height: none;
        overflow: visible;
        align-items: flex-start;
        padding: 12px;
    }
    .register-wrapper.auth-register-bg .login-card {
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 16px 14px 18px;
    }
    .register-wrapper.auth-register-bg h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .register-wrapper.auth-register-bg .form-control,
    .register-wrapper.auth-register-bg .form-select,
    .register-wrapper.auth-register-bg .input-wrapper input {
        font-size: 16px;
    }
}
