/**
 * Logistaan auth pages — matches merchant portal (--mp-gradient)
 * Headings: Sora · UI: Outfit
 */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@500;600;700;800&display=swap");

:root {
  /* Portal tokens (same as merchant_theme.css) */
  --ap-primary: #10b981;
  --ap-primary-dark: #064e3b;
  --ap-secondary: #1a2e26;
  --ap-gradient: linear-gradient(135deg, #152520 0%, #064e3b 100%);
  --ap-gradient-soft: linear-gradient(135deg, rgba(21, 37, 32, 0.97) 0%, rgba(6, 78, 59, 0.95) 100%);
  --ap-ink: #0f172a;
  --ap-ink-muted: #64748b;
  --ap-surface: rgba(255, 255, 255, 0.92);
  --ap-surface-solid: #ffffff;
  --ap-radius: 22px;
  --ap-radius-sm: 12px;
  --ap-shadow: 0 28px 64px -16px rgba(44, 62, 80, 0.45), 0 12px 24px -8px rgba(15, 23, 42, 0.2);
  --ap-glow: 0 0 80px rgba(6, 78, 59, 0.4);
  /* Standard form card — matches login panel (professional, consistent footprint) */
  --ap-auth-card-width: 420px;
  --ap-auth-card-min-h: 528px;
}

/* ---- Shell ---- */
body.auth-portal {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ap-ink);
  background: var(--ap-secondary);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body.auth-portal.auth-portal--scroll {
  overflow-x: hidden;
  overflow-y: auto;
}

body.auth-portal:not(.auth-portal--scroll) {
  overflow: hidden;
}

/* Mesh + photo + portal wash */
.auth-portal .auth-portal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% -10%, rgba(6, 78, 59, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 30%, rgba(6, 78, 59, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 50% at 70% 100%, rgba(21, 37, 32, 0.95), transparent 55%),
    linear-gradient(160deg, #0a1410 0%, #0f2922 45%, #071a14 100%);
}

.auth-portal .auth-portal-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/assets/img/logo/login-background.png");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

.auth-portal .auth-portal-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ap-gradient);
  opacity: 0.38;
  mix-blend-mode: multiply;
}

/* ---- Split layout (login / hero pages) ---- */
.auth-portal .auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-portal .auth-layout--split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Single fused “business card” on top of existing portal background */
.auth-portal .auth-biz-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.08fr);
  align-items: stretch;
  max-width: 900px;
  width: 100%;
  border-radius: 26px;
  /* visible so Animate.css slide/fade on children isn’t clipped */
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 40px 80px -20px rgba(15, 23, 42, 0.55),
    0 18px 36px -14px rgba(44, 62, 80, 0.45);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Registration / long forms: wider card, scrollable white column */
.auth-portal .auth-biz-card--wide {
  max-width: min(1120px, calc(100vw - 2rem));
  grid-template-columns: minmax(252px, 0.88fr) minmax(360px, 1.22fr);
}

.auth-portal .auth-biz-card--wide .auth-showcase {
  min-height: 520px;
}

.auth-portal .auth-biz-card--wide .auth-panel {
  min-height: 0;
  max-height: min(92vh, 880px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-portal .auth-biz-card .login-card.auth-card--wide .auth-login-form-head {
  padding-top: 0;
  margin-bottom: 1.25rem;
}

.auth-portal .auth-biz-card .auth-showcase {
  border-radius: 26px 0 0 26px;
  box-shadow: none;
  min-height: 480px;
  padding: 2rem;
  overflow: hidden;
}

/* Left column: welcome / headline (reference — stays on the left only) */
.auth-portal .auth-showcase--welcome {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.auth-portal .auth-showcase-inner--welcome {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  text-align: center;
}

/* Logo emblem: icon seated in a static glass disc (the spinning arcs are gone) */
.auth-portal .auth-showcase-welcome-emblem {
  position: relative;
  width: clamp(104px, 26vw, 136px);
  height: clamp(104px, 26vw, 136px);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.auth-portal .auth-showcase-welcome-logo {
  display: block;
  width: 46%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

/* Small “Welcome to” — large “Logistaan” */
.auth-portal .auth-showcase-welcome-line {
  margin: 0 0 0.4rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(0.7rem, 1.35vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.auth-portal .auth-showcase-welcome-headline {
  margin: 0 0 1rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.15rem, 5.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.08;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.25);
}

.auth-portal .auth-showcase-welcome-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

/* Softer corner-only glow — beats .auth-showcase::before so no mid-panel circle behind copy */
.auth-portal .auth-showcase.auth-showcase--welcome::before {
  background: radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.14), transparent 36%);
}

.auth-portal .auth-showcase.auth-showcase--welcome::after {
  opacity: 0.5;
  right: -22%;
  bottom: -28%;
  width: 65%;
  height: 65%;
}

.auth-portal .auth-biz-card .auth-panel {
  padding: 0;
  min-height: 0;
  background: #fff;
  align-self: stretch;
  border-radius: 0 26px 26px 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: stretch;
}

.auth-portal .auth-biz-card .login-card {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: none;
  width: 100%;
  min-height: 100%;
  height: 100%;
  margin: 0;
  background: #fff;
  padding: 2.5rem 2.25rem 2.6rem;
}

.auth-portal .auth-biz-card .login-card--reference-form {
  position: relative;
  overflow: hidden;
}

/* Registration form: make it scrollable again.
 *
 * `.auth-biz-card--wide .auth-panel` sets `overflow-y: auto` up at line ~139,
 * but the generic `.auth-biz-card .auth-panel { overflow: hidden }` above has
 * the SAME specificity (0,3,0) and comes later, so it wins on source order —
 * and `.login-card--reference-form` then clips a second time. The result was a
 * form cut off mid-field with no scrollbar on either element: 1217px of
 * content inside a 570px box, 647px unreachable.
 *
 * These sit after both, so ordering settles it without a specificity fight.
 * overflow-x stays hidden to keep the decorative circles inside the panel. */
.auth-portal .auth-biz-card--wide .auth-panel {
  overflow-y: auto;
  overflow-x: hidden;
}

.auth-portal .auth-biz-card--wide .login-card--reference-form {
  overflow: visible;
}

.auth-portal .auth-biz-card .login-card::before,
.auth-portal .auth-biz-card .login-card::after {
  display: none;
}

/* Decorative circles — bottom-right of white panel (ties to gradient side) */

.auth-portal .auth-login-form-head {
  position: relative;
  z-index: 1;
  margin-bottom: 1.65rem;
  padding-top: 2.5rem;
}

.auth-portal .auth-login-form-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--ap-ink);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.auth-portal .auth-login-form-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ap-ink-muted);
  line-height: 1.5;
}

.auth-portal .auth-login-form {
  position: relative;
  z-index: 1;
}

.auth-portal .auth-biz-card .auth-input-with-icon {
  display: flex;
  align-items: center;
  gap: 0;
  background: #eceff1;
  border-radius: var(--ap-radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-portal .auth-biz-card .auth-input-with-icon:focus-within {
  background: #e8ecf0;
  border-color: rgba(6, 78, 59, 0.45);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.18);
}

.auth-portal .auth-biz-card .auth-input-with-icon__ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.auth-portal .auth-biz-card .auth-input-with-icon .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0;
  padding-right: 0.75rem;
}

.auth-portal .auth-biz-card .auth-input-with-icon--password .form-control {
  padding-right: 0.35rem;
}

.auth-portal .auth-biz-card .auth-input-eye-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ap-ink-muted);
  padding: 0.5rem 0.85rem 0.5rem 0.4rem;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.auth-portal .auth-biz-card .auth-input-eye-btn:hover {
  color: var(--ap-primary);
  background: rgba(6, 78, 59, 0.1);
}

.auth-portal .auth-biz-card .auth-login-meta .form-check-input {
  border-color: #cbd5e1;
}

.auth-portal .auth-biz-card .auth-login-meta .form-check-input:checked {
  background-color: var(--ap-primary);
  border-color: var(--ap-primary);
}

.auth-portal .auth-or-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0 1.15rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-portal .auth-or-divider::before,
.auth-portal .auth-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-portal .auth-biz-card .btn-auth-alt {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.82rem 1rem;
  border: 2px solid #1e293b;
  color: #1e293b;
  border-radius: var(--ap-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.auth-portal .auth-biz-card .btn-auth-alt:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #0f172a;
}

.auth-portal .auth-biz-card .auth-login-footer {
  margin-top: 1.5rem;
}

.auth-portal .auth-biz-card .auth-login-form .login-btn {
  margin-top: 0.35rem;
}

.auth-portal .auth-showcase {
  position: relative;
  border-radius: var(--ap-radius);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--ap-gradient);
  box-shadow: var(--ap-glow), 0 24px 48px rgba(0, 0, 0, 0.25);
  min-height: var(--ap-auth-card-min-h);
}

.auth-portal .auth-showcase::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 45%);
  pointer-events: none;
}

.auth-portal .auth-showcase::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -30%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.auth-portal .auth-showcase-inner {
  position: relative;
  z-index: 1;
  color: #fff;
}

.auth-portal .auth-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.auth-portal .auth-showcase h2 {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.auth-portal .auth-showcase-lead {
  font-size: 0.98rem;
  line-height: 1.65;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 28rem;
}

.auth-portal .auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-portal .auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.95;
}

.auth-portal .auth-feature-list li i {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.auth-portal .auth-panel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  padding: 1.25rem 0 1.25rem 1.5rem;
  min-height: var(--ap-auth-card-min-h);
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .auth-portal .auth-layout--split {
    padding: 1rem;
  }

  .auth-portal .auth-biz-card {
    grid-template-columns: 1fr;
    max-width: min(440px, 100%);
    border-radius: 22px;
  }

  .auth-portal .auth-biz-card .auth-showcase {
    padding: 1.65rem 1.4rem 1.5rem;
    min-height: auto;
    border-radius: 22px 22px 0 0;
  }

  .auth-portal .auth-biz-card .auth-panel {
    border-radius: 0 0 22px 22px;
  }

  .auth-portal .auth-panel {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    height: auto;
  }

  .auth-portal .auth-biz-card .login-card::after {
    display: none;
  }

  .auth-portal .auth-biz-card .login-card {
    min-height: auto !important;
    height: auto !important;
    flex: none !important;
    padding: 1.85rem 1.5rem 2rem;
  }

  .auth-portal .auth-biz-card.auth-biz-card--wide {
    max-width: min(100%, 720px);
  }

  .auth-portal .auth-biz-card--wide .auth-panel {
    max-height: none;
    overflow-y: visible;
  }
}

/* ---- Card ---- */
.auth-portal .login-card,
.auth-portal .auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  background: var(--ap-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--ap-radius);
  padding: 2.35rem 2rem 2.5rem;
  box-shadow: var(--ap-shadow);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-sizing: border-box;
}

/* Standard auth forms: same width + min height as landing login (professional rhythm) */
.auth-portal .login-card:not(.auth-card--wide),
.auth-portal .auth-card:not(.auth-card--wide) {
  max-width: var(--ap-auth-card-width);
  min-height: var(--ap-auth-card-min-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-portal .auth-biz-card .login-card:not(.auth-card--wide),
.auth-portal .auth-biz-card .auth-card:not(.auth-card--wide) {
  flex: 1 1 auto;
  align-self: stretch;
  min-height: var(--ap-auth-card-min-h);
  height: 100%;
  max-height: none;
}

.auth-portal .login-card::before,
.auth-portal .auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: var(--ap-gradient);
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.45);
}

.auth-portal .login-card.auth-card--wide,
.auth-portal .auth-card--wide {
  max-width: 1040px;
  padding: 2.5rem 2.5rem 2.75rem;
  min-height: auto;
  height: auto;
  display: block;
  flex: none;
}

.auth-portal .login-card.auth-card--wide::before,
.auth-portal .auth-card--wide::before {
  width: min(280px, 35%);
}

.auth-portal .auth-card-accent {
  position: absolute;
  left: 0;
  top: 2.5rem;
  bottom: 2.5rem;
  width: 4px;
  border-radius: 4px;
  background: var(--ap-gradient);
  box-shadow: 0 0 20px rgba(6, 78, 59, 0.4);
}

@media (max-width: 767.98px) {
  .auth-portal .auth-card-accent {
    display: none;
  }
}

/* ---- Brand ---- */
.auth-portal .brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 1.15rem;
  background: linear-gradient(145deg, #fff 0%, #f0f9ff 100%);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(44, 62, 80, 0.18), 0 0 0 1px rgba(6, 78, 59, 0.12);
}

.auth-portal .brand-logo:hover {
  box-shadow: 0 18px 42px rgba(44, 62, 80, 0.2), 0 0 0 1px rgba(6, 78, 59, 0.15);
}

.auth-portal .login-title,
.auth-portal .auth-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: var(--ap-ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.auth-portal .login-subtitle,
.auth-portal .auth-lead {
  color: var(--ap-ink-muted);
  margin-bottom: 1.65rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 400;
}

.auth-portal .auth-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ap-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.45rem;
}

/* ---- Form ---- */
.auth-portal .form-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ap-ink);
  margin-bottom: 0.4rem;
}

.auth-portal .form-group-majestic {
  margin-bottom: 1.05rem;
}

.auth-portal .form-control-majestic,
.auth-portal .form-control.form-control-majestic,
.auth-portal input[type="text"],
.auth-portal input[type="password"],
.auth-portal input[type="email"],
.auth-portal input[type="number"],
.auth-portal input[type="tel"],
.auth-portal select:not([class*="form-select"]),
.auth-portal textarea,
.auth-portal input[type="file"] {
  border: 1px solid #e2e8f0;
  border-radius: var(--ap-radius-sm);
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background-color: #f8fafc;
  width: 100%;
}

.auth-portal input[type="text"]:hover,
.auth-portal input[type="password"]:hover,
.auth-portal input[type="email"]:hover,
.auth-portal input[type="tel"]:hover,
.auth-portal select:hover,
.auth-portal textarea:hover,
.auth-portal input[type="file"]:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.auth-portal input[type="file"] {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  border-style: dashed;
}

.auth-portal input[type="text"]:focus,
.auth-portal input[type="password"]:focus,
.auth-portal input[type="email"]:focus,
.auth-portal input[type="tel"]:focus,
.auth-portal select:focus,
.auth-portal textarea:focus {
  border-color: var(--ap-primary);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.22);
  background: #fff;
  outline: none;
}

.auth-portal .btn-majestic {
  background: var(--ap-gradient);
  color: #fff !important;
  border: none;
  padding: 0.9rem 1.25rem;
  border-radius: var(--ap-radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  width: 100%;
  margin-top: 0.5rem;
  box-shadow: 0 10px 28px rgba(6, 78, 59, 0.38), 0 2px 8px rgba(44, 62, 80, 0.12);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.auth-portal .btn-majestic:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(6, 78, 59, 0.45), 0 4px 12px rgba(44, 62, 80, 0.15);
  filter: brightness(1.05);
}

.auth-portal .btn-majestic:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-portal .auth-biz-card .btn-majestic.auth-login-btn-primary {
  background: var(--ap-secondary);
  box-shadow: 0 10px 24px rgba(44, 62, 80, 0.38), 0 2px 8px rgba(15, 23, 42, 0.1);
}

.auth-portal .auth-biz-card .btn-majestic.auth-login-btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(44, 62, 80, 0.45), 0 4px 12px rgba(15, 23, 42, 0.12);
}

.auth-portal .auth-link {
  color: var(--ap-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.auth-portal .auth-link:hover {
  color: var(--ap-secondary);
  text-decoration: underline;
}

.auth-portal .phone-display {
  font-weight: 700;
  color: var(--ap-primary);
}

.auth-portal .password-toggle-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--ap-ink-muted);
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  z-index: 5;
}

.auth-portal .password-toggle-icon:hover {
  color: var(--ap-primary);
  background: rgba(6, 78, 59, 0.12);
}

.auth-portal .alert {
  border-radius: var(--ap-radius-sm);
}

.auth-portal .modal-content {
  border-radius: var(--ap-radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--ap-shadow);
}

.auth-portal .modal-header {
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: var(--ap-radius) var(--ap-radius) 0 0;
}

.auth-portal .modal-title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.auth-portal .otp-input {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ap-ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-portal .otp-input:focus {
  border-color: var(--ap-primary);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.2);
  background: #fff;
  outline: none;
}

.auth-portal .btn-primary {
  background: var(--ap-gradient);
  border: none;
}

.auth-portal .input-group-text {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.auth-portal .btn-outline-secondary {
  border-color: #e2e8f0;
  color: var(--ap-ink-muted);
}

.auth-portal .btn-outline-secondary:hover {
  background: #f1f5f9;
  color: var(--ap-ink);
  border-color: #cbd5e1;
}

/* Waiting */
.auth-portal .auth-wait-card {
  max-width: 520px;
  text-align: center;
}

.auth-portal .auth-wait-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--ap-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 12px 32px rgba(6, 78, 59, 0.35);
}

.auth-portal .auth-steps {
  text-align: left;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: var(--ap-radius-sm);
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: var(--ap-ink-muted);
}

.auth-portal .auth-steps li {
  margin-bottom: 0.35rem;
}

.auth-portal.refer-shell {
  padding: 2rem 1rem 3rem;
}

.auth-portal.refer-shell .login-card,
.auth-portal.refer-shell .auth-card--wide {
  margin-left: auto;
  margin-right: auto;
}

/* Utility: centered single column (forgot / reset / OTP) */
.auth-portal .auth-layout--single {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  width: 100%;
  max-width: calc(var(--ap-auth-card-width) + 2.5rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  gap: 0;
}

/* Phones: natural card height reads better than a tall empty shell */
@media (max-width: 575.98px) {
  .auth-portal .login-card:not(.auth-card--wide),
  .auth-portal .auth-card:not(.auth-card--wide) {
    min-height: auto;
    justify-content: flex-start;
    padding: 1.75rem 1.35rem 2rem;
  }
}

/* ============================================================
   Micro-interactions (auth pages)

   Decorative motion was removed on purpose: no entrance
   staggers, drifting orbs, rising particles, panning grid,
   text shimmer, or button sheen. What remains is feedback
   motion only — state changes the user caused.
   ============================================================ */

.auth-portal .auth-biz-card {
  position: relative;
}

/* Brand headline keeps the gradient fill, without the light sweep. */
.auth-portal .auth-showcase-welcome-headline {
  background: linear-gradient(135deg, #ffffff 0%, #d1fae5 55%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* Press feedback on the primary action. */
.auth-portal .btn-majestic {
  position: relative;
}

.auth-portal .btn-majestic:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.08s;
}

/* Field responds to focus: border, ring, and icon colour. */
.auth-portal .auth-biz-card .auth-input-with-icon {
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-portal .auth-biz-card .auth-input-with-icon__ico {
  transition: color 0.2s;
}

.auth-portal .auth-biz-card .auth-input-with-icon:focus-within .auth-input-with-icon__ico {
  color: var(--ap-primary);
}
