/* Sign-in, sign-up, 2FA and password pages: full-width two-column shell shared
   with artonlabs.com (brand panel left, form right, Back-to-homepage on top).
   The form markup inside keeps the classes the pages already use
   (.login-card, .form-group, .input-wrapper, .btn-login …); they are restyled
   here, scoped to .auth-main so the rest of the site is untouched. */

:root {
  --a-brand: #0b5cc2;
  --a-brand-dark: #08427f;
  --a-panel: #0a2547;
  --a-ink: #0f172a;
  --a-muted: #475569;
  --a-faint: #64748b;
  --a-line: #d5deea;
  --a-soft: #eef2f8;
  --a-ring: rgba(11, 92, 194, 0.16);
}

.auth-body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; color: var(--a-ink); background: #fff; }
.auth-shell { min-height: 100vh; display: flex; }

/* ── brand panel ─────────────────────────────────────────────────────────── */
.auth-panel {
  position: relative; overflow: hidden; flex: 0 0 46%; max-width: 720px; box-sizing: border-box;
  padding: 40px clamp(32px, 4.5vw, 64px) 44px; background: var(--a-panel); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth-panel::before {                       /* faint grid */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 110px 120px;
}
.auth-panel::after {                        /* soft brand circles, bottom-right and top-right */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 210px at calc(100% - 100px) calc(100% - 140px), rgba(11, 92, 194, .45) 99%, transparent 100%),
              radial-gradient(circle 90px at calc(100% - 50px) 120px, rgba(11, 92, 194, .3) 99%, transparent 100%);
}
.auth-panel > * { position: relative; z-index: 1; }
.auth-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.auth-logo img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.auth-pitch { display: flex; flex-direction: column; gap: 28px; max-width: 520px; }
.auth-pill { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.auth-pitch h1 { margin: 0; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -1.2px; }
.auth-pitch p { margin: 0; font-size: 18px; line-height: 1.6; color: #cfdcf3; }
.auth-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; font-weight: 500; }
.auth-points li { display: flex; align-items: center; gap: 12px; }
.auth-points i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.auth-trust { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #bcd0ef; }

/* ── form column ─────────────────────────────────────────────────────────── */
.auth-main { flex: 1; min-width: 0; box-sizing: border-box; padding: 28px clamp(20px, 4vw, 56px); display: flex; flex-direction: column; }
.auth-top { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; }
.auth-lang { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 14px; color: var(--a-muted); }
.auth-lang button { border: 0; background: none; font: inherit; color: var(--a-brand); cursor: pointer; padding: 6px 8px; border-radius: 8px; min-height: 36px; }
.auth-lang button[aria-current="true"] { color: var(--a-ink); font-weight: 600; cursor: default; }
.auth-home { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 0 18px; border: 1.5px solid var(--a-line); border-radius: 12px; color: var(--a-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.auth-home:hover { border-color: var(--a-brand); color: var(--a-brand); }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.auth-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--a-faint); }
.auth-foot nav { display: flex; gap: 18px; }
.auth-foot a { color: var(--a-faint); text-decoration: none; }
.auth-foot a:hover { color: var(--a-brand); }

/* the pages' own form markup, restyled */
.auth-main .login-card { width: 100%; max-width: 440px; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; position: static; overflow: visible; }
.auth-main .login-card::before { display: none; }
.auth-main .login-header { text-align: left; margin-bottom: 26px; }
.auth-main .login-logo { display: none; }
.auth-main .login-subtitle { font-size: 16px; color: var(--a-muted); }
.auth-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--a-brand); margin-bottom: 10px; }
.auth-title { margin: 0 0 8px; font-size: 34px; font-weight: 800; letter-spacing: -.7px; color: var(--a-ink); }
.auth-progress { display: flex; gap: 8px; margin: 22px 0 26px; }
.auth-progress span { flex: 1; height: 4px; border-radius: 4px; background: #dbe3ef; }
.auth-progress span.on { background: var(--a-brand); }
.auth-main .form-group { margin-bottom: 18px; }
.auth-main .form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--a-ink); }
.auth-main .input-wrapper { position: relative; }
.auth-main .input-wrapper > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--a-faint); pointer-events: none; }
.auth-main input[type=text], .auth-main input[type=email], .auth-main input[type=password], .auth-main input[type=number] {
  width: 100%; height: 54px; box-sizing: border-box; padding: 0 16px; border: 1.5px solid #cbd5e1; border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--a-ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-main .input-wrapper > i ~ input { padding-left: 44px; }
.auth-main input:focus { border-color: var(--a-brand); box-shadow: 0 0 0 3px var(--a-ring); }
.auth-main .btn-login, .auth-btn {
  width: 100%; height: 54px; border: 0; border-radius: 12px; background: var(--a-brand); color: #fff; font: inherit;
  font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; box-shadow: none; margin-top: 4px; transition: background .15s;
}
.auth-main .btn-login:hover, .auth-btn:hover { background: var(--a-brand-dark); transform: none; }
.auth-main .error-msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; font-size: 14px; margin-bottom: 18px; }
.auth-main .login-footer, .auth-links { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; font-size: 15px; color: var(--a-muted); text-align: center; }
.auth-main a { color: var(--a-brand); font-weight: 600; text-decoration: none; }
.auth-main a:hover { color: var(--a-brand-dark); }
.auth-main .auth-home { color: var(--a-ink); }
.auth-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #334155; margin: 2px 0 18px; }
.auth-check input { width: 18px; height: 18px; accent-color: var(--a-brand); }
.auth-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid #dbe3ef; border-radius: 999px; font-size: 15px; color: #334155; max-width: 100%; }
.auth-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-chip button { border: 0; border-radius: 999px; background: var(--a-soft); color: var(--a-brand); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; cursor: pointer; min-height: 32px; }
.auth-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.auth-row .form-label { margin-bottom: 8px; }
.auth-row a { font-size: 14px; }

/* wizard: with JavaScript one step shows at a time; without it both do */
.auth-js .auth-step.is-hidden { display: none; }
.auth-step + .auth-step { margin-top: 0; }
html:not(.auth-js) #toPassword, html:not(.auth-js) #changeEmail { display: none; }

/* Laptop screens (e.g. 14" at 1366×650 after the browser chrome): scale the
   desktop sizes with the viewport height too, so the page fits without scrolling.
   At 1920×1080 every clamp hits its maximum, i.e. the sizes above. */
@media (min-width: 901px) {
  .auth-panel { flex: 0 1 65%; max-width: none; gap: clamp(20px, 3.6vh, 40px); padding: clamp(24px, 4vh, 40px) clamp(24px, 2.6vw, 44px) clamp(24px, 4.4vh, 44px); }
  .auth-pitch { gap: clamp(16px, 2.9vh, 28px); max-width: 620px; }
  .auth-pitch h1 { font-size: clamp(32px, min(3.6vw, 5.8vh), 52px); }
  .auth-pitch p { font-size: clamp(15px, 2.1vh, 18px); }
  .auth-points { gap: clamp(8px, 1.5vh, 14px); font-size: clamp(14px, 1.9vh, 16px); }
  .auth-main { flex: 1 1 0; min-width: 360px; padding: clamp(18px, 3.2vh, 28px) clamp(20px, 2.2vw, 40px); }
  .auth-main .login-card { max-width: 420px; }
  .auth-top { gap: 12px; }
  .auth-lang { font-size: 12.5px; }
  .auth-home { min-height: 32px; height: 32px; padding: 0 11px; border-width: 1px; border-radius: 9px; font-size: 12.5px; }
  .auth-home i { font-size: 14px; }
  .auth-center { padding: clamp(12px, 3vh, 32px) 0; }
  .auth-main .login-header { margin-bottom: clamp(16px, 2.6vh, 26px); }
  .auth-title { font-size: clamp(25px, min(2.4vw, 4.2vh), 34px); }
  .auth-main .login-subtitle { font-size: clamp(14px, 1.9vh, 16px); }
  .auth-progress { margin: clamp(14px, 2.2vh, 22px) 0 clamp(16px, 2.6vh, 26px); }
  .auth-main .form-group { margin-bottom: clamp(12px, 1.8vh, 18px); }
  .auth-main input[type=text], .auth-main input[type=email], .auth-main input[type=password], .auth-main input[type=number] { height: clamp(44px, 6.2vh, 54px); font-size: 15px; }
  .auth-main .btn-login, .auth-btn { height: clamp(44px, 6.2vh, 54px); font-size: 15px; }
  .auth-main .login-footer, .auth-links { margin-top: clamp(16px, 2.4vh, 24px); }
}

/* ── phone ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-shell { flex-direction: column; }
  .auth-panel { flex: none; max-width: none; padding: 18px 20px 22px; gap: 14px; border-radius: 0 0 14px 14px; }
  .auth-panel::after { background: radial-gradient(circle 120px at calc(100% - 40px) 100%, rgba(11, 92, 194, .45) 99%, transparent 100%); }
  .auth-pitch { gap: 0; }
  .auth-pitch .auth-pill, .auth-pitch p, .auth-points, .auth-trust { display: none; }
  /* On a phone the headline is a one-line tagline, not a hero: big type with the
     desktop's tight 1.08 leading read as a cramped block above the form. */
  .auth-pitch h1 { font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -.2px; color: #dbe6f7; }
  .auth-logo { font-size: 19px; }
  .auth-logo img { width: 34px; height: 34px; }
  .auth-panel-top { display: flex; justify-content: space-between; align-items: center; }
  .auth-panel .auth-home-icon { display: inline-flex; }
  .auth-main { padding: 36px 20px 24px; }
  .auth-top { display: none; }
  .auth-center { align-items: flex-start; padding: 8px 0 24px; }
  .auth-title { font-size: 21px; letter-spacing: -.3px; margin-bottom: 4px; }
  /* Compact controls on phones. Inputs keep 16px text: iOS zooms the page into
     any field below that. */
  .auth-eyebrow { font-size: 11px; margin-bottom: 6px; }
  .auth-main .login-subtitle { font-size: 14px; }
  .auth-main .login-header { margin-bottom: 18px; }
  .auth-progress { margin: 16px 0 18px; }
  .auth-main .form-group { margin-bottom: 14px; }
  .auth-main .form-label { font-size: 13px; margin-bottom: 6px; }
  .auth-main input[type=text], .auth-main input[type=email], .auth-main input[type=password], .auth-main input[type=number] { height: 46px; border-radius: 10px; }
  .auth-main .btn-login, .auth-btn { height: 46px; border-radius: 10px; font-size: 15px; }
  .auth-check { font-size: 14px; margin-bottom: 14px; }
  .auth-main .login-footer, .auth-links { margin-top: 18px; gap: 10px; font-size: 14px; }
  .auth-chip { font-size: 14px; padding: 4px 4px 4px 12px; }
  .auth-main .error-msg { font-size: 13px; padding: 10px 12px; }
  .auth-foot { justify-content: center; text-align: center; }
}
.auth-home-icon { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; align-items: center; justify-content: center; text-decoration: none; }

/* ═══ 2026-10 refresh: the sign-in pages in the public site's language ═══════
   Same typeface (Ubuntu) and ink as the site; a flat navy panel with only the
   faint grid (no brand circles); 48px fields and buttons, 10px radius, 1px lines. */
.auth-body { font-family: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.auth-panel { background: #0B1B33; }
.auth-panel::after { display: none; }
.auth-panel::before { background-size: 96px 96px; opacity: .7; }
.auth-logo { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.auth-pill { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-weight: 500; letter-spacing: 0; }
.auth-pitch h1 { font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.auth-pitch p { color: #C7D3E6; }
.auth-points i { background: rgba(125,211,252,.14); color: #7DD3FC; }
.auth-home { border-width: 1px; border-color: #CBD5E1; border-radius: 10px; }
.auth-home:hover { border-color: #94A3B8; }
.auth-main input[type="email"], .auth-main input[type="password"], .auth-main input[type="text"],
.auth-main input[type="tel"], .auth-main input[type="number"], .auth-main select {
  height: 48px; border-width: 1px; border-color: #CBD5E1; border-radius: 10px; font-size: 16px;
}
.auth-main input:focus, .auth-main select:focus { border-color: var(--a-brand); box-shadow: 0 0 0 4px rgba(15,110,214,.14); }
.auth-main .btn-login, .auth-btn { height: 48px; border-radius: 10px; font-weight: 600; }
.auth-main .error-msg { border-radius: 10px; }
.auth-chip { border-color: #E3E8EF; }
@media (max-width: 900px) {
  .auth-home { border-radius: 8px; }
  /* Phones: the dark panel is just a navbar — logo and the home button, no
     tagline, no grid, square bottom edge. */
  .auth-panel { padding: 10px 16px; gap: 0; border-radius: 0; min-height: 60px; justify-content: center; }
  .auth-panel::before, .auth-panel::after { display: none; }
  .auth-pitch { display: none; }
  .auth-logo { font-size: 17px; gap: 10px; }
  .auth-logo img { width: 30px; height: 30px; }
  .auth-panel .auth-home-icon { width: 38px; height: 38px; border-radius: 8px; font-size: 15px; }
  .auth-main { padding-top: 28px; }
}
