/* ══════════════════════════════════════════════
   AUTH PAGES | AdmicoHub — Landing Design System
   ══════════════════════════════════════════════ */

:root {
  --a-bg:       #F5F5F0;
  --a-text:     #0A0A0A;
  --a-muted:    #6B6B66;
  --a-accent:   #8BFF2E;
  --a-accent-dk:#5ECC00;
  --a-dark:     #0D1117;
  --a-card:     #FFFFFF;
  --a-border:   rgba(0,0,0,0.10);
  --a-radius:   16px;
  --a-radius-sm:8px;
  --a-font:     'Plus Jakarta Sans', sans-serif;
  --a-red:      #f20819;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--a-font);
  background: var(--a-bg);
  color: var(--a-text);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ══════════════════════════════════════════════
   LEFT: BRAND PANEL
   ══════════════════════════════════════════════ */

.auth-brand {
  background: var(--a-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 3rem 3rem;
  position: relative;
  overflow: hidden;
  gap: 1.5rem;
}

/* Subtle grid lines */
.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-brand-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-brand-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.auth-brand-orb-1 { width: 360px; height: 360px; background: rgba(139,255,46,0.07); top: -100px; right: -80px; }
.auth-brand-orb-2 { width: 240px; height: 240px; background: rgba(139,255,46,0.05); bottom: -60px; left: -60px; }
.auth-brand-orb-3 { width: 180px; height: 180px; background: rgba(139,255,46,0.04); top: 50%; left: 20%; }

/* Logo — absolute top-left */
.auth-bl-logo {
  position: absolute;
  top: 1.75rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  z-index: 2;
}

.auth-bl-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

/* ── Slider ───────────────────────────────────── */

/* CSS grid stacking: all slides share one cell so the
   container height equals the tallest slide — no fixed px needed */
.auth-slider-wrap {
  display: grid;
  grid-template-areas: "s";
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.auth-slide {
  grid-area: s;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

/* Quote */
.auth-slide-quote {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 0.6rem;
  font-style: italic;
}

/* Answer */
.auth-slide-ans {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

/* Tag pill */
.auth-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(139,255,46,0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8BFF2E;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Mini Card Mockup ─────────────────────────── */
.auth-slide-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.auth-mc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.auth-mc-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-mc-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0.2rem 0;
}

.auth-mc-val-sm {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.auth-mc-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.45rem;
  border-radius: 100px;
}
.auth-mc-up, .auth-mc-green-badge { background: rgba(139,255,46,0.12); color: #8BFF2E; }

.auth-mc-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
  margin: 0.28rem 0;
}

.auth-mc-bar-fill {
  height: 100%;
  width: 0;
  background: #8BFF2E;
  border-radius: 2px;
}

.auth-mc-item { font-size: 0.76rem; color: rgba(255,255,255,0.45); }
.auth-mc-green { color: #8BFF2E; }
.auth-mc-red   { color: #f20819; }

.auth-mc-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.4rem;
}

/* Tax rows */
.auth-mc-taxes { display: flex; flex-direction: column; gap: 0.28rem; margin-top: 0.4rem; }

.auth-mc-tax-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.5);
  padding: 0.22rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Invoice timeline */
.auth-mc-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0.65rem 0;
}

.auth-mc-tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.auth-mc-tl-step span:last-child {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

.auth-mc-tl-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.auth-mc-done .auth-mc-tl-dot {
  background: #8BFF2E;
  border-color: #5ECC00;
  box-shadow: 0 0 6px rgba(139,255,46,0.5);
}

.auth-mc-tl-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  min-width: 28px;
  margin-top: 3px;
}

.auth-mc-tl-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: #8BFF2E;
}

/* Compliance rows */
.auth-mc-comp-list { display: flex; flex-direction: column; gap: 0.38rem; margin-top: 0.5rem; }

.auth-mc-comp-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.79rem;
}

.auth-mc-ok  { color: rgba(255,255,255,0.6); }
.auth-mc-ok i { color: #8BFF2E; font-size: 0.75rem; }
.auth-mc-warn { color: #FFC700; }
.auth-mc-warn i { color: #FFC700; font-size: 0.75rem; }

/* ── Dots ─────────────────────────────────────── */
.auth-slider-dots {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  z-index: 1;
}

.auth-sdot {
  width: 6px; height: 6px;
  border-radius: 100px;
  background: rgba(255,255,255,0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.auth-sdot.is-active {
  width: 22px;
  background: #8BFF2E;
}

/* ══════════════════════════════════════════════
   RIGHT: FORM PANEL
   ══════════════════════════════════════════════ */

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  background: var(--a-bg);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-title {
  font-family: var(--a-font);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--a-text);
  margin-bottom: 0.35rem;
  line-height: 1.15;
}

.auth-form-subtitle {
  color: var(--a-muted);
  font-size: 0.9rem;
}

/* ── Form Elements ────────────────────────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--a-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-input {
  width: 100%;
  padding: 0.78rem 1rem;
  background: var(--a-card);
  border: 1.5px solid var(--a-border);
  border-radius: var(--a-radius-sm);
  color: var(--a-text);
  font-family: var(--a-font);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.auth-input::placeholder {
  color: rgba(0,0,0,0.25);
  font-weight: 400;
}

.auth-input:focus {
  border-color: var(--a-accent);
  box-shadow: 0 0 0 3px rgba(139,255,46,0.18);
}

.auth-input.is-invalid {
  border-color: var(--a-red);
  box-shadow: 0 0 0 3px rgba(242,8,25,0.10);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .auth-input {
  padding-right: 2.8rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--a-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
  transition: color 0.2s;
  line-height: 1;
}

.auth-password-toggle:hover { color: var(--a-text); }

/* ── Submit Button ────────────────────────────── */

.auth-submit { margin-top: 0.25rem; }

.auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--a-accent);
  color: var(--a-dark);
  font-family: var(--a-font);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--a-radius-sm);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-btn:hover { background: var(--a-accent-dk); color: var(--a-dark); }
.auth-btn:active { transform: scale(0.98); }

/* ── Errors ───────────────────────────────────── */

.auth-errors {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(242,8,25,0.05);
  border: 1px solid rgba(242,8,25,0.15);
  border-radius: var(--a-radius-sm);
  margin-bottom: 0.5rem;
}

.auth-error-item {
  font-size: 0.82rem;
  color: var(--a-red);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.auth-error-item i { font-size: 0.75rem; flex-shrink: 0; }

/* ── Flash Messages ───────────────────────────── */

.auth-flash {
  padding: 0.7rem 1rem;
  border-radius: var(--a-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-flash-success {
  background: rgba(139,255,46,0.10);
  border: 1px solid rgba(139,255,46,0.20);
  color: #3a8c00;
}

.auth-flash-error {
  background: rgba(242,8,25,0.05);
  border: 1px solid rgba(242,8,25,0.15);
  color: var(--a-red);
}

/* ── Footer ───────────────────────────────────── */

.auth-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--a-muted);
}

.auth-footer a {
  color: var(--a-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-footer a:hover { color: var(--a-accent-dk); }

/* ── Legal Acceptance Checkboxes ─────────────── */

.auth-legal {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.auth-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--a-accent);
  cursor: pointer;
}

.auth-check span {
  font-size: 0.8rem;
  color: var(--a-muted);
  line-height: 1.45;
}

.auth-check span a {
  color: var(--a-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-check span a:hover { color: var(--a-accent-dk); }

/* ── Legal Re-Accept Page ─────────────────────── */

.auth-reaccept-icon {
  font-size: 2rem;
  color: var(--a-accent);
  margin-bottom: 0.75rem;
}

.auth-reaccept-docs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-reaccept-doc {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--a-radius-sm);
  text-decoration: none;
  color: var(--a-text);
  transition: border-color 0.15s, background 0.15s;
}

.auth-reaccept-doc:hover {
  border-color: var(--a-accent);
  background: rgba(139,255,46,0.05);
}

.auth-reaccept-doc > i:first-child {
  font-size: 1.2rem;
  color: var(--a-accent);
  flex-shrink: 0;
}

.auth-reaccept-doc-title { font-size: 0.87rem; font-weight: 600; }
.auth-reaccept-doc-ver   { font-size: 0.74rem; color: var(--a-muted); margin-top: 1px; }

.auth-reaccept-doc-ext {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--a-muted);
  flex-shrink: 0;
}

/* ── Password Strength ────────────────────────── */

.auth-strength { display: flex; gap: 4px; margin-top: 0.35rem; }

.auth-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(0,0,0,0.08);
  transition: background 0.3s ease;
}

.auth-strength-bar.active-weak   { background: #f20819; }
.auth-strength-bar.active-fair   { background: #FFC700; }
.auth-strength-bar.active-good   { background: #4A90E2; }
.auth-strength-bar.active-strong { background: #8BFF2E; }

.auth-strength-label {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.2rem;
  text-align: right;
  color: var(--a-muted);
}

/* Mobile sub-label (hidden on desktop, shown in compact brand bar) */
.auth-brand-mobile-sub {
  display: none;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* Tablet: shrink slider a bit */
@media (max-width: 960px) {
  .auth-brand { padding: 5rem 2rem 2.5rem; }
  .auth-slider-wrap { max-width: 340px; }
  .auth-slide-quote { font-size: 1.1rem; }
}

/* ≤900px — brand becomes a compact top bar, form stacks below */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
  }

  /* Compact brand bar */
  .auth-brand {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.5rem;
    min-height: unset;
    gap: 0;
    overflow: visible;
  }
  .auth-brand::before { display: none; }
  .auth-brand-orb     { display: none; }

  /* Logo: un-absolute so it sits in the flex row */
  .auth-bl-logo {
    position: static;
    font-size: 0.95rem;
  }
  .auth-bl-logo-img { width: 26px; height: 26px; }

  /* Hide slider + dots */
  .auth-slider-wrap,
  .auth-slider-dots { display: none; }

  /* Show the mobile sub-label */
  .auth-brand-mobile-sub { display: block; }

  /* Form panel fills the rest of the screen */
  .auth-form-panel {
    padding: 2rem 1.5rem 3rem;
    min-height: unset;
    flex: 1;
  }

  /* Prevent iOS Safari auto-zoom on input focus (needs ≥ 16px) */
  .auth-input { font-size: 1rem; }
}

/* ≤600px — tighter padding */
@media (max-width: 600px) {
  .auth-brand        { padding: 0.85rem 1.25rem; }
  .auth-form-panel   { padding: 1.75rem 1.25rem 2.5rem; }
  .auth-form-container { max-width: 100%; }
  .auth-brand-mobile-sub { display: none; }
}

/* ≤480px — stack name fields, smaller title */
@media (max-width: 480px) {
  .auth-field-row      { grid-template-columns: 1fr; }
  .auth-form-title     { font-size: 1.45rem; }
  .auth-form-panel     { padding: 1.5rem 1.25rem 2.5rem; }
  .auth-form-container { max-width: 100%; width: 100%; }
}
