/* ============================================================
   layout.auth.modern.css
   Brand-matched auth layout (Sign in / Sign up / Forgot / etc.)
   Same VetlinkPRO AI Transcribe brand as layout.public.modern.css:
   Navy ground / Teal accent / Orange primary CTA.

   Scoped under body.l-auth-modern so it never leaks. Bootstrap is
   still loaded by _AuthLayout.Modern.cshtml (auth pages use its
   form controls + utility classes); this file restyles on top.

   The old _AuthLayout.cshtml + layout.auth.css remain untouched
   for rollback.
   ============================================================ */

/* ---- Self-hosted brand fonts (served from 'self', CSP-safe) ---- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700.woff2') format('woff2');}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/source-sans-3-400.woff2') format('woff2');}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/source-sans-3-600.woff2') format('woff2');}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/source-sans-3-700.woff2') format('woff2');}

/* ---- Tokens (scoped) ---- */
.l-auth-modern{
  --teal:#18A7A0;
  --teal-ink:#0E6E69;
  --navy:#0F2A3A;
  --orange:#FF7A45;
  --mint:#7AC8B5;

  --surface:#FFFFFF;
  --panel:#EEF4F5;
  --border:#E4EBEE;
  --text:#0F2A3A;
  --muted:rgba(15,42,58,.66);

  --hero:#0F2A3A;
  --hero-2:#0A1C27;

  --ring:rgba(24,167,160,.30);
  --radius-md:12px; --radius-lg:18px;
  --shadow-lift:0 18px 50px -24px rgba(15,42,58,.55);

  --font-heading:'Inter','DM Sans','Segoe UI',system-ui,sans-serif;
  --font-body:'Source Sans 3','Segoe UI',system-ui,sans-serif;

  min-height:100vh;
  color:#EAF3F5;
  font-family:var(--font-body);
  background:radial-gradient(1100px 520px at 85% -10%,#164055 0%,transparent 60%),
             linear-gradient(180deg,var(--hero) 0%,var(--hero-2) 100%);
  -webkit-font-smoothing:antialiased;
}
.l-auth-modern *,.l-auth-modern *::before,.l-auth-modern *::after{box-sizing:border-box;}

/* ---- Topbar (brand only) ---- */
/* Solid navy bar (matches the public nav + chat header) — the old translucent bar let the
   body's radial glow bleed through and looked washed. */
.l-auth-modern .auth-topbar{position:sticky;top:0;z-index:10;
  background:var(--hero);
  border-bottom:1px solid rgba(255,255,255,.08);}
.l-auth-modern .auth-topbar__inner{max-width:1100px;margin:0 auto;padding:12px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;}
.l-auth-modern .auth-topbar__nav{display:flex;align-items:center;gap:14px;
  font-family:var(--font-heading);font-weight:600;font-size:14.5px;}
.l-auth-modern .auth-topbar__nav a{color:rgba(255,255,255,.82);text-decoration:none;}
.l-auth-modern .auth-topbar__nav a:hover{color:var(--teal);}

/* Brand mark (soundwave) — matches the public layout */
.l-auth-modern .brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#fff;}
.l-auth-modern .brand .mark{width:34px;height:34px;border-radius:9px;flex:0 0 auto;
  background:linear-gradient(150deg,var(--teal),#0E7E78);
  display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);}
.l-auth-modern .brand .mark span{display:flex;align-items:flex-end;gap:2.5px;height:15px;}
.l-auth-modern .brand .mark i{width:2.5px;background:#fff;border-radius:2px;display:block;}
.l-auth-modern .brand .mark i:nth-child(1){height:6px} .l-auth-modern .brand .mark i:nth-child(2){height:14px}
.l-auth-modern .brand .mark i:nth-child(3){height:9px} .l-auth-modern .brand .mark i:nth-child(4){height:12px}
.l-auth-modern .brand b{font-family:var(--font-heading);font-weight:700;font-size:18px;letter-spacing:-.02em;}
.l-auth-modern .brand em{font-style:normal;color:var(--mint);font-weight:600;}

/* ---- Shell ---- */
.l-auth-modern .auth-shell{position:relative;min-height:calc(100vh - 62px);
  display:flex;align-items:center;justify-content:center;padding:48px 16px;}
.l-auth-modern .auth-shell::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(680px 300px at 50% 8%,rgba(24,167,160,.16),transparent 62%);}

/* ---- Card (light surface for contrast) ---- */
.l-auth-modern .auth-card{position:relative;z-index:1;width:min(600px,100%);margin:0 auto;
  background:var(--surface);color:var(--text);border:1px solid var(--border);
  border-radius:var(--radius-lg);box-shadow:var(--shadow-lift);padding:26px 22px;}
@media(min-width:640px){.l-auth-modern .auth-card{padding:36px 40px;}}
/* content-heavy auth pages (MFA setup, recovery codes) can opt into a wider card */
.l-auth-modern .auth-card.auth-card--wide{width:min(720px,100%);}

.l-auth-modern .auth-card h1,
.l-auth-modern .auth-card h2{font-family:var(--font-heading);font-weight:700;color:var(--text);
  letter-spacing:-.015em;line-height:1.15;margin:0 0 8px;font-size:clamp(1.4rem,2.6vw,1.8rem);text-wrap:balance;}
.l-auth-modern .auth-card p{color:var(--muted);}
.l-auth-modern .auth-card p.lead{margin:0 0 18px;font-size:1.02rem;color:var(--muted);}
.l-auth-modern .auth-card a:not(.btn){color:var(--teal-ink);text-underline-offset:3px;}
.l-auth-modern .auth-card a:not(.btn):hover{color:var(--teal);}

/* ---- Forms ---- */
.l-auth-modern .form{display:grid;gap:12px;margin-top:6px;}
/* Rows are spaced ONLY by the .form grid gap above. Cancel per-element Bootstrap mb-*/mt-*
   utilities (mb-3 on .field, mt-3 on .form-actions, etc.) so the whole sign-up flow
   (Signup, Setup, SignIn, Reset, …) shares one compact, consistent vertical rhythm
   instead of doubling up (grid gap + margin). */
.l-auth-modern .form > *{margin-top:0 !important;margin-bottom:0 !important;}
.l-auth-modern .field{display:grid;gap:5px;}
.l-auth-modern label,
.l-auth-modern .form-label{font-family:var(--font-heading);font-weight:600;font-size:.95rem;color:var(--text);margin:0;}
.l-auth-modern .form-control,
.l-auth-modern .form-select,
.l-auth-modern textarea,
.l-auth-modern input[type="text"],
.l-auth-modern input[type="email"],
.l-auth-modern input[type="password"],
.l-auth-modern input[type="tel"],
.l-auth-modern input[type="number"]{
  /* Match the dashboard/billing pages' Bootstrap control size (shorter than the old .62rem
     marketing height) so the sign-up flow reads at the same density as the app. */
  width:100%;padding:.375rem .75rem;border-radius:.375rem;
  border:1px solid var(--border);background:#fff;color:var(--text);
  font-family:var(--font-body);font-size:1rem;line-height:1.5;
  transition:border-color .15s ease,box-shadow .15s ease;}
.l-auth-modern .form-control::placeholder,
.l-auth-modern input::placeholder{color:rgba(15,42,58,.42);}
.l-auth-modern .form-control:focus,
.l-auth-modern .form-select:focus,
.l-auth-modern textarea:focus,
.l-auth-modern input:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 .22rem var(--ring);}

.l-auth-modern .form-check{display:flex;align-items:center;gap:8px;}
.l-auth-modern .form-check-input{width:1.05rem;height:1.05rem;margin-top:0;}
.l-auth-modern .form-check-input:checked{background-color:var(--teal);border-color:var(--teal);}
.l-auth-modern .form-check-input:focus{border-color:var(--teal);box-shadow:0 0 0 .22rem var(--ring);}
.l-auth-modern .form-check-label{color:var(--text);font-size:.95rem;}

.l-auth-modern .hint{color:var(--muted);font-size:.85rem;}
.l-auth-modern .form-text{color:var(--muted);}
.l-auth-modern .hr{height:1px;background:var(--border);margin:16px 0;border:0;}

/* ---- Buttons (restyle Bootstrap in brand colours) ---- */
.l-auth-modern .btn{--bs-btn-focus-shadow-rgb:24,167,160;font-family:var(--font-heading);font-weight:700;font-size:15px;
  border-radius:var(--radius-md);padding:.6rem 1.1rem;border:1.5px solid transparent;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.25;
  white-space:nowrap;transition:transform .15s ease,opacity .15s ease,border-color .15s ease,background .15s ease,color .15s ease;}
.l-auth-modern .btn:active{transform:translateY(1px);}
.l-auth-modern .btn:focus-visible{outline:3px solid var(--teal);outline-offset:2px;}

.l-auth-modern .btn-primary,
.l-auth-modern .btn-primary:visited{background:var(--orange);border-color:var(--orange);color:#fff;
  box-shadow:0 10px 26px -14px rgba(255,122,69,.9);}
.l-auth-modern .btn-primary:hover{background:var(--orange);opacity:.93;transform:translateY(-1px);color:#fff;}
.l-auth-modern .btn-primary:disabled,
.l-auth-modern .btn-primary.disabled{opacity:.6;color:#fff;}

.l-auth-modern .btn-outline-primary{background:transparent;border-color:var(--teal);color:var(--teal-ink);}
.l-auth-modern .btn-outline-primary:hover{background:var(--teal);border-color:var(--teal);color:#fff;}

.l-auth-modern .btn-ghost{background:transparent;border-color:var(--border);color:var(--text);}
.l-auth-modern .btn-ghost:hover{border-color:var(--teal);color:var(--teal-ink);}

/* Action row: buttons left, links pushed right via .spacer; wraps on small screens */
.l-auth-modern .form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;}
.l-auth-modern .spacer{flex:1 1 auto;}

/* ---- Alerts (support both `alert-*` and `alert--*` spellings used across pages) ---- */
.l-auth-modern .alert{padding:11px 14px;border-radius:var(--radius-md);border:1px solid transparent;}
.l-auth-modern .alert-info{background:#eef7f7;border-color:#cfe9e7;color:#0b4f4a;}
.l-auth-modern .alert-success,
.l-auth-modern .alert--success{background:#edfbf3;border-color:#bdeecf;color:#0a5c3e;}
.l-auth-modern .alert-danger,
.l-auth-modern .alert--error{background:#fdf0ee;border-color:#f6d2c9;color:#8a2b17;}

/* ---- Footer ---- */
.l-auth-modern .auth-footer{padding:22px 0;color:rgba(255,255,255,.55);
  border-top:1px solid rgba(255,255,255,.08);}
.l-auth-modern .auth-footer__inner{max-width:1100px;margin:0 auto;padding:0 20px;
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13.5px;}
.l-auth-modern .auth-footer .links a{color:rgba(255,255,255,.6);text-decoration:none;}
.l-auth-modern .auth-footer .links a:hover{color:var(--teal);}

/* Neutralise accidental inner borders/cards inside the auth card */
.l-auth-modern .auth-card form,
.l-auth-modern .auth-card fieldset,
.l-auth-modern .auth-card .card{border:0;background:transparent;box-shadow:none;}
.l-auth-modern .auth-card fieldset{padding:0;margin:0;min-width:0;}
.l-auth-modern .auth-card .border{border:0 !important;}
