/* Skill-Hive sign-in and sign-up pages (login.php, register.php, verify_email.php).
   Same colours as the dashboard (dashboard/css/ui.css), plus Caveat for the handwritten notes. */

@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/caveat/caveat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/caveat/caveat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --primary: #6366f1; --secondary: #8b5cf6; --accent: #ec4899; --success: #10b981; --danger: #ef4444; --amber: #f59e0b;
    --page: #0a0f1e; --panel: #0f172a; --field: #0b1222; --border: #263348; --border-strong: #334155;
    --text: #f1f5f9; --muted: #94a3b8; --faint: #64748b;
    --ink: #fde68a;          /* handwriting on the dark panel */
    --ink-accent: #f9a8d4;   /* hand-drawn underlines and arrows */
    --grad: linear-gradient(135deg, var(--primary), var(--secondary));
    --radius: 14px;
    --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.auth { margin: 0; min-height: 100vh; background: var(--page); color: var(--text); line-height: 1.5;
            font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.auth h1, .auth h2, .auth h3, .auth p { margin: 0; }
.auth a { color: #a5b4fc; text-decoration: none; }
.auth a:hover { color: #c7d2fe; text-decoration: underline; text-underline-offset: 3px; }
.auth [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }

/* ---------- Frame: story panel on the left, form on the right ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 2.5rem 3.5rem;
              background:
                radial-gradient(900px 500px at 15% 10%, rgba(99,102,241,0.30), transparent 60%),
                radial-gradient(700px 500px at 90% 95%, rgba(236,72,153,0.18), transparent 60%),
                linear-gradient(160deg, #141a3a 0%, #0d1229 55%, #0a0f1e 100%);
              border-right: 1px solid rgba(148,163,184,0.10); }
/* faint ruled-paper lines behind the handwriting */
.auth-story::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
                      background-image: repeating-linear-gradient(180deg, transparent 0 39px, rgba(148,163,184,0.06) 39px 40px); }
.auth-story > * { position: relative; }
.auth-main { display: flex; flex-direction: column; padding: 2rem 2rem 2.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text) !important; text-decoration: none !important; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar .brand { display: none; }
.topbar-link { color: var(--muted) !important; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar-link:hover { color: var(--text) !important; text-decoration: none !important; }
.topbar-aside { color: var(--muted); font-size: 0.9rem; }

/* ---------- Story panel content ---------- */
.story-body { margin: auto 0; max-width: 520px; padding: 3rem 0; }
.hand { font-family: var(--hand); font-weight: 600; color: var(--ink); line-height: 1; }
.story-hello { font-size: clamp(3rem, 5vw, 4.4rem); display: inline-block; position: relative; transform: rotate(-3deg); transform-origin: left bottom; }
.story-hello svg { position: absolute; left: 0; bottom: -0.38em; width: 100%; height: 0.45em; overflow: visible; }
.scribble { fill: none; stroke: var(--ink-accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.draw .scribble { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.1s 0.35s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.story-title { margin-top: 2.2rem !important; font-size: clamp(1.9rem, 2.6vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.auth-title, .story-text, .auth-sub { text-wrap: pretty; }
.story-title em { font-style: normal; background: linear-gradient(135deg, #a5b4fc, #f0abfc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.story-text { margin-top: 1rem !important; color: #a3b0c6; font-size: 1.05rem; max-width: 460px; }

/* A handwritten sticky note */
.note { margin-top: 2.6rem; max-width: 380px; padding: 1.15rem 1.35rem 1.25rem; border-radius: 4px 14px 12px 14px; transform: rotate(-1.6deg);
        background: linear-gradient(180deg, #fef9c3, #fdf0a6); color: #3b2f0b; box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 2px 0 rgba(0,0,0,0.08); position: relative; }
.note::before { content: ''; position: absolute; top: -10px; left: 50%; width: 86px; height: 22px; transform: translateX(-50%) rotate(2deg);
                background: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(2px); }
.note p { font-family: var(--hand); font-size: 1.55rem; line-height: 1.2; font-weight: 600; }
.note .sig { display: block; margin-top: 0.55rem; font-family: var(--hand); font-size: 1.25rem; color: #6b5a1a; text-align: right; }

/* Ticked list */
.story-points { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 0.85rem; }
.story-points li { display: flex; gap: 0.75rem; align-items: flex-start; color: #cbd5e1; font-size: 0.97rem; }
.story-points i { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 0.85rem;
                  background: rgba(99,102,241,0.18); color: #c7d2fe; margin-top: 0.05rem; }
.story-foot { color: var(--faint); font-size: 0.82rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.story-foot a { color: var(--faint) !important; }
.story-foot a:hover { color: var(--muted) !important; }

/* ---------- Form column ---------- */
.auth-card { width: 100%; max-width: 440px; margin: auto; padding: 2.5rem 0 1rem; }
.auth-card.wide { max-width: 560px; }
.mobile-hello { display: none; font-size: 2.4rem; transform: rotate(-2deg); transform-origin: left; margin-bottom: 0.4rem; }
.auth-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.auth-sub { color: var(--muted); margin-top: 0.45rem !important; font-size: 0.98rem; }
.auth-head { margin-bottom: 1.75rem; }

/* Alerts */
.alert { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.92rem; margin-bottom: 1.25rem; border: 1px solid; }
.alert i { font-size: 1.05rem; margin-top: 0.05rem; }
.alert-error { background: rgba(239,68,68,0.09); border-color: rgba(239,68,68,0.35); color: #fecaca; }
.alert-success { background: rgba(16,185,129,0.09); border-color: rgba(16,185,129,0.35); color: #a7f3d0; }
.alert-info { background: rgba(99,102,241,0.09); border-color: rgba(99,102,241,0.3); color: #c7d2fe; }
.alert.shake { animation: shake 0.4s ease-in-out; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* Fields */
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-row.code-phone { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.label { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.45rem; font-size: 0.88rem; font-weight: 600; color: #e2e8f0; }
.label .opt { color: var(--faint); font-weight: 500; font-size: 0.8rem; }
.label a { font-weight: 600; font-size: 0.85rem; }
.control { position: relative; }
.control > i.lead { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 1rem; pointer-events: none; transition: color .15s; }
.input, .select, .textarea {
    width: 100%; min-height: 48px; padding: 0.7rem 0.95rem; border-radius: 12px; border: 1px solid var(--border-strong);
    background: var(--field); color: var(--text); font: inherit; font-size: 0.97rem; transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none; appearance: none; }
.control > i.lead ~ .input { padding-left: 2.6rem; }
.input:hover, .select:hover, .textarea:hover { border-color: #475569; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.18); background: #0d1528; }
.control:focus-within > i.lead { color: #a5b4fc; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { padding-right: 2.4rem; cursor: pointer;
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          background-repeat: no-repeat; background-position: right 0.95rem center; }
.select option, .select optgroup { background: #0f172a; color: var(--text); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid, .ms.is-invalid .ms-trigger { border-color: rgba(239,68,68,0.7); }
.input.is-valid { border-color: rgba(16,185,129,0.55); }
.peek { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 9px;
        background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 1.05rem; }
.peek:hover { color: var(--text); background: rgba(148,163,184,0.1); }
.control.has-peek .input { padding-right: 2.9rem; }
.hint { display: block; margin-top: 0.4rem; font-size: 0.8rem; color: var(--faint); }
.hint.ok { color: #6ee7b7; } .hint.bad { color: #fca5a5; } .hint.warn { color: #fcd34d; }
.hint button.linkish { background: none; border: 0; padding: 0; color: #a5b4fc; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.counter { float: right; }

/* Caps-lock warning */
.caps { display: none; margin-top: 0.4rem; font-size: 0.8rem; color: #fcd34d; }
.caps.on { display: flex; gap: 0.35rem; align-items: center; }

/* Password strength meter */
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 0.55rem; }
.meter span { height: 4px; border-radius: 4px; background: #1e293b; transition: background .2s; }
.meter[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.meter[data-level="2"] span:nth-child(-n+2) { background: var(--amber); }
.meter[data-level="3"] span:nth-child(-n+3) { background: #84cc16; }
.meter[data-level="4"] span { background: var(--success); }
.rules { list-style: none; padding: 0; margin: 0.55rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.78rem; color: var(--faint); }
.rules li { display: inline-flex; align-items: center; gap: 0.3rem; }
.rules li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #334155; }
.rules li.met { color: #a7f3d0; }
.rules li.met::before { background: var(--success); }

/* Role switch on the sign-in form */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--field); border: 1px solid var(--border-strong); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 42px; border-radius: 10px; cursor: pointer;
                   font-weight: 650; font-size: 0.92rem; color: var(--muted); transition: background .15s, color .15s; }
.segmented label:hover { color: var(--text); }
.segmented input:checked + label { background: #1e293b; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 4px 14px rgba(0,0,0,0.35); }
.segmented input:checked + label i { color: #a5b4fc; }
.segmented input:focus-visible + label { outline: 2px solid #a5b4fc; outline-offset: 1px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.3rem; border-radius: 12px;
       font: inherit; font-weight: 700; font-size: 0.97rem; cursor: pointer; text-decoration: none !important; border: 1px solid var(--border-strong);
       background: transparent; color: var(--text) !important; transition: transform .15s, box-shadow .2s, background .15s, border-color .15s, opacity .15s; }
.btn:hover { border-color: #64748b; background: rgba(148,163,184,0.06); }
.btn-primary { width: 100%; border: 0; background: var(--grad); color: #fff !important; box-shadow: 0 10px 26px -10px rgba(99,102,241,0.8); }
.btn-primary:hover { background: var(--grad); transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(99,102,241,0.9); }
.btn-primary:active { transform: translateY(0); }
.btn[disabled], .btn.is-busy { opacity: 0.7; cursor: progress; transform: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost { border-color: transparent; color: var(--muted) !important; padding-left: 0.6rem; padding-right: 0.6rem; }
.btn-ghost:hover { color: var(--text) !important; background: rgba(148,163,184,0.08); border-color: transparent; }

.divider { display: flex; align-items: center; gap: 0.9rem; margin: 1.5rem 0; color: var(--faint); font-size: 0.82rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.social .btn { width: 100%; font-weight: 650; }
.social .btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.social .btn.disabled { opacity: 0.45; cursor: not-allowed; }
.social .btn.disabled:hover { background: transparent; border-color: var(--border-strong); }
.fine { color: var(--faint); font-size: 0.8rem; text-align: center; margin-top: 0.75rem !important; }
.switch-line { text-align: center; color: var(--muted); font-size: 0.93rem; margin-top: 1.75rem !important; }
.switch-line a { font-weight: 700; }

/* Checkboxes (terms and newsletter) */
.checks { display: grid; gap: 0.6rem; margin: 1.4rem 0 1.25rem; }
.check { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.85rem 0.95rem; border-radius: 12px; border: 1px solid var(--border); background: rgba(15,23,42,0.6); cursor: pointer; transition: border-color .15s, background .15s; }
.check:hover { border-color: #3b4a63; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 0.1rem; border-radius: 6px; border: 1.5px solid #475569; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check .box i { font-size: 0.85rem; color: #fff; opacity: 0; transform: scale(0.6); transition: opacity .15s, transform .15s; }
.check input:checked ~ .box { background: var(--primary); border-color: var(--primary); }
.check input:checked ~ .box i { opacity: 1; transform: none; }
.check input:focus-visible ~ .box { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.check:has(input:checked) { border-color: rgba(99,102,241,0.55); background: rgba(99,102,241,0.07); }
.check.is-invalid { border-color: rgba(239,68,68,0.6); }
.check .txt { font-size: 0.9rem; color: #cbd5e1; line-height: 1.45; }
.check .txt b { color: var(--text); font-weight: 650; }
.check .txt small { display: block; color: var(--faint); font-size: 0.8rem; margin-top: 0.15rem; }

/* ---------- Sign-up: role choice ---------- */
.roles { display: grid; gap: 0.9rem; }
.role { display: flex; gap: 1rem; align-items: center; width: 100%; text-align: left; padding: 1.15rem 1.2rem; border-radius: 16px; border: 1px solid var(--border-strong);
        background: rgba(15,23,42,0.7); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s, background .15s, box-shadow .2s; }
.role:hover { border-color: rgba(99,102,241,0.7); background: rgba(99,102,241,0.06); transform: translateY(-1px); box-shadow: 0 14px 30px -18px rgba(99,102,241,0.8); }
.role-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; }
.role-icon.learn { background: rgba(99,102,241,0.16); color: #c7d2fe; }
.role-icon.teach { background: rgba(236,72,153,0.14); color: #f9a8d4; }
.role-copy { flex: 1; min-width: 0; }
.role-copy b { display: block; font-size: 1.05rem; font-weight: 750; }
.role-copy span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; }
.role .go { color: var(--faint); font-size: 1.1rem; transition: transform .15s, color .15s; }
.role:hover .go { color: #a5b4fc; transform: translateX(3px); }
.role-note { margin-top: 1.1rem !important; color: var(--faint); font-size: 0.85rem; text-align: center; }

/* ---------- Sign-up: steps ---------- */
.stepper { display: flex; gap: 0.5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; counter-reset: step; }
.stepper li { flex: 1; min-width: 0; }
.stepper .bar { display: block; height: 4px; border-radius: 4px; background: #1e293b; overflow: hidden; }
.stepper .bar::after { content: ''; display: block; height: 100%; width: 0; background: var(--grad); transition: width .35s ease; }
.stepper li.done .bar::after, .stepper li.current .bar::after { width: 100%; }
.stepper .name { display: block; margin-top: 0.45rem; font-size: 0.78rem; font-weight: 600; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.current .name { color: var(--text); }
.stepper li.done .name { color: var(--muted); }
.step-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a5b4fc; }
.step { animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.auth .step-title { font-size: 1.15rem; font-weight: 750; margin: 0 0 1.25rem; }
/* While a field shows an error, hide its usual tip so the two don't stack */
.field:has(> .hint.bad[data-auto]) > .hint:not([data-auto]):not(.ok):not(.bad):not(.warn) { display: none; }
.step-nav { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.step-nav .btn-primary { flex: 1; }
.step-nav .btn-back { flex: 0 0 auto; }
.change-role { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 1.1rem; font-size: 0.88rem; font-weight: 600; color: var(--muted) !important;
               background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.change-role:hover { color: var(--text) !important; }

/* Searchable multi-select (languages, qualifications) */
.ms { position: relative; }
.ms-trigger { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; width: 100%; min-height: 48px; padding: 0.45rem 2.4rem 0.45rem 0.7rem; border-radius: 12px;
              border: 1px solid var(--border-strong); background: var(--field); color: var(--text); font: inherit; text-align: left; cursor: pointer; position: relative; }
.ms-trigger:hover { border-color: #475569; }
.ms.open .ms-trigger, .ms-trigger:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.18); outline: none; }
.ms-trigger::after { content: ''; position: absolute; right: 0.95rem; top: 50%; width: 12px; height: 8px; margin-top: -4px;
                     background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; transition: transform .15s; }
.ms.open .ms-trigger::after { transform: rotate(180deg); }
.ms-placeholder { color: var(--faint); padding-left: 0.25rem; font-size: 0.97rem; }
.ms-tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.3rem 0.22rem 0.6rem; border-radius: 8px; background: rgba(99,102,241,0.18); color: #e0e7ff; font-size: 0.84rem; font-weight: 600; }
.ms-tag button { border: 0; background: none; color: #c7d2fe; cursor: pointer; padding: 0 0.2rem; font-size: 1rem; line-height: 1; border-radius: 4px; }
.ms-tag button:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ms-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); border-radius: 12px; border: 1px solid var(--border-strong); background: #0f172a;
            box-shadow: 0 22px 50px rgba(0,0,0,0.55); padding: 0.5rem; display: none; }
.ms.open .ms-panel { display: block; }
.ms-search { width: 100%; min-height: 40px; padding: 0.5rem 0.75rem; border-radius: 9px; border: 1px solid var(--border); background: var(--field); color: var(--text); font: inherit; font-size: 0.92rem; }
.ms-search:focus { outline: none; border-color: var(--primary); }
.ms-list { max-height: 230px; overflow-y: auto; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.ms-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 8px; cursor: pointer; font-size: 0.92rem; color: #cbd5e1; }
.ms-list li:hover, .ms-list li.active { background: rgba(99,102,241,0.12); color: #fff; }
.ms-list li .tick { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #475569; display: grid; place-items: center; font-size: 0.75rem; color: transparent; flex: 0 0 auto; }
.ms-list li[aria-selected="true"] .tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.ms-empty { padding: 0.6rem; color: var(--faint); font-size: 0.88rem; }

/* Sign-up: handwritten aside next to the form heading */
.aside-note { display: inline-block; margin-left: 0.4rem; font-family: var(--hand); font-size: 1.35rem; font-weight: 600; color: var(--ink); transform: rotate(-4deg); white-space: nowrap; }

/* Toast (shown after a successful sign-up) */
.auth-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); opacity: 0; z-index: 100; display: flex; gap: 0.6rem; align-items: center;
              max-width: min(92vw, 520px); padding: 0.85rem 1.1rem; border-radius: 12px; background: #0f2a22; border: 1px solid rgba(16,185,129,0.45); color: #d1fae5;
              box-shadow: 0 18px 40px rgba(0,0,0,0.5); font-size: 0.93rem; transition: opacity .25s, transform .25s; }
.auth-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .auth-story { padding: 2.25rem 2.5rem; } }
@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .topbar .brand { display: inline-flex; }
    .mobile-hello { display: inline-block; }
    .auth-main { padding: 1.25rem 1rem 2rem; }
    .auth-card { margin: 0 auto; padding-top: 1.75rem; }
}
@media (max-width: 520px) {
    .field-row, .field-row.code-phone { grid-template-columns: 1fr; }
    .social { grid-template-columns: 1fr; }
    .auth-title { font-size: 1.6rem; }
    .stepper .name { font-size: 0.72rem; }
    .topbar-aside span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .draw .scribble { stroke-dashoffset: 0; }
}
