/* ============================================================
   auth.css — Login / Register shell
   Same family as the landing page (home.css): teal accent,
   Poppins, dark hero panel with grid texture, white form side.
   ============================================================ */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--hp-surface, #fff);
  font-family: var(--hp-font);
}

/* ---------- Left: dark brand panel (echoes .hp-hero) ---------- */

.auth-brand {
  position: relative;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(15,118,110,.28), transparent 60%),
    radial-gradient(700px 380px at 95% 15%, rgba(13,148,136,.16), transparent 55%),
    var(--hp-dark, #0b1220);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  overflow: hidden;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.auth-brand > * {
  position: relative;
}
.auth-brand .hp-logo {
  color: #fff;
}
.auth-brand-main {
  max-width: 420px;
  padding: 40px 0;
}
.auth-brand-main h1 {
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.auth-brand-main h1 .text-accent {
  color: #5eead4;
}
.auth-brand-main p {
  color: #94a3b8;
  font-size: 15px;
  margin: 0 0 28px;
}
.auth-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-points span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
}
.auth-points i {
  color: #5eead4;
  font-size: 15px;
}
.auth-brand-foot {
  font-size: 13px;
  color: #64748b;
}
.auth-brand-foot a {
  color: #94a3b8;
  text-decoration: none;
}
.auth-brand-foot a:hover {
  color: #5eead4;
}

/* ---------- Right: form side ---------- */

.auth-form-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--hp-canvas, #f6f7f9);
}
.auth-form-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--hp-line, #e5e7eb);
  border-radius: var(--hp-radius, 16px);
  box-shadow: var(--hp-shadow-md);
  padding: 36px 34px;
}
.auth-form-card .auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hp-accent, #0f766e);
  background: var(--hp-accent-soft, #f0fdfa);
  border: 1px solid var(--hp-accent-border, #99f6e4);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}
.auth-form-card h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--hp-ink, #0f172a);
  margin: 0 0 6px;
}
.auth-form-card .auth-sub {
  font-size: 14px;
  color: var(--hp-body, #475569);
  margin: 0 0 24px;
}

/* Fields: quieter than bootstrap defaults, teal focus ring */
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-ink, #0f172a);
  margin-bottom: 6px;
}
.auth-field .form-control,
.auth-field .form-select {
  border: 1px solid var(--hp-line, #e5e7eb);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  box-shadow: none;
  background: #fff;
}
.auth-field .form-control:focus,
.auth-field .form-select:focus {
  border-color: var(--hp-accent, #0f766e);
  box-shadow: 0 0 0 3px rgba(15,118,110,.14);
}
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
@media (max-width: 575.98px) {
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Submit: same accent button as the landing CTAs */
.auth-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--hp-font);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  padding: 12px 20px;
  border: 1px solid transparent;
  background: var(--hp-accent, #0f766e);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.auth-submit:hover {
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: var(--hp-shadow-md);
}
.auth-submit:focus-visible {
  outline: 3px solid rgba(15,118,110,.4);
  outline-offset: 2px;
}
.auth-submit:disabled {
  opacity: .65;
  transform: none;
  cursor: default;
}

.auth-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hp-line, #e5e7eb);
  font-size: 14px;
  color: var(--hp-body, #475569);
  text-align: center;
}
.auth-alt a {
  color: var(--hp-accent, #0f766e);
  font-weight: 600;
  text-decoration: none;
}
.auth-alt a:hover {
  text-decoration: underline;
}
.auth-alt .sep {
  color: var(--hp-muted, #94a3b8);
  margin: 0 8px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--hp-body, #475569);
  text-decoration: none;
  margin-top: 22px;
}
.auth-back:hover {
  color: var(--hp-accent, #0f766e);
}

/* OTP input: larger digits, easier to read while typing from email */
.auth-otp-input {
  font-size: 22px;
  letter-spacing: .35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Single-column on small screens ---------- */

@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 32px 24px;
  }
  .auth-brand-main {
    padding: 24px 0;
  }
  .auth-points {
    display: none; /* keep mobile form-first */
  }
  .auth-brand-foot {
    display: none;
  }
  .auth-form-side {
    padding: 24px 16px 40px;
  }
  .auth-form-card {
    padding: 28px 22px;
    box-shadow: var(--hp-shadow-sm);
  }
}
