/* ==========================================================================
   vm-mobile-auth.css — the phone layer for sign-in and sign-up
   --------------------------------------------------------------------------
   Load AFTER vm-auth.css on login.php and register.php, with Inter loaded
   for phones only (see the media-scoped font link on those pages).

   Every rule sits inside the same phone-width media query vm-mobile.css
   uses, so the desktop split layout (form + doodle panel) is untouched.
   On a phone the form is the screen: the doodle panel steps aside, and
   the page takes the dashboard's voice — paper and ink, a mono eyebrow
   over an Inter 800 heading, 52px fields, a 56px ink button, square
   corners — so signing in looks like the app it opens.
   ========================================================================== */

@media (max-width: 767px) {

:root {
    --m-paper: #FAF9F6;
    --m-ink: #10201C;
    --m-ink-deep: #04120E;
    --m-muted: #63706A;
    --m-label: #5E6B65;
    --m-hair: rgba(16, 30, 27, 0.12);
    --m-hair-strong: rgba(16, 30, 27, 0.22);
    --m-accent: #00A878;
    --m-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --m-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html, body { background: var(--m-paper); }
body { font-family: var(--m-font); color: var(--m-ink); font-size: 15px; }
:focus-visible { outline-color: var(--m-ink); }

/* The form is the screen. */
.split { display: block; min-height: 100vh; min-height: 100dvh; }
.col-brand { display: none; }
.col-form {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px));
    background: var(--m-paper);
}
.form-wrap { max-width: none; }

/* Wordmark on top, then a mono eyebrow over the heading. */
.brand { margin: 0 0 30px; }
.brand .mark {
    font-family: var(--m-font);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--m-ink);
    line-height: 48px;
}
.brand .mark sup { color: var(--m-accent); font-size: 7px; letter-spacing: 0; }
.brand .division {
    margin-top: 22px;
    padding-top: 0;
    border-top: 0;
    font-family: var(--m-mono);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--m-label);
}
.form-wrap h2 {
    font-family: var(--m-font);
    font-weight: 800;
    font-size: 31px;
    letter-spacing: -0.033em;
    line-height: 1.03;
    color: var(--m-ink);
    margin: 0 0 10px;
}
.form-wrap .subtitle {
    font-size: 14px;
    line-height: 1.45;
    color: var(--m-muted);
    margin: 0 0 24px;
}

/* Sign in with: a row of square chips, scrolled sideways. */
.id-tabs {
    gap: 6px;
    margin: 0 -20px 22px;
    padding: 0 20px;
    border-bottom: 0;
}
.id-tab {
    min-height: 44px;
    padding: 0 14px;
    font-family: var(--m-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--m-ink);
    background: #fff;
    border: 1px solid var(--m-hair-strong);
}
.id-tab:hover { color: var(--m-ink); border-color: var(--m-ink); }
.id-tab.active { color: #fff; background: var(--m-ink); border-color: var(--m-ink); }
.id-tab.active::after { display: none; }
.id-tab.locked { color: var(--m-muted); background: transparent; }

/* Fields: mono label, 52px box, 16px text (no zoom on focus). */
.field { margin-bottom: 18px; }
.field label {
    font-family: var(--m-mono);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--m-label);
    margin-bottom: 8px;
}
.field input {
    min-height: 52px;
    font-family: var(--m-font);
    font-size: 16px;
    font-weight: 500;
    color: var(--m-ink);
    border: 1px solid var(--m-hair-strong);
    background: #fff;
}
.field input:focus { border-color: var(--m-ink); box-shadow: inset 0 0 0 1px var(--m-ink); }
.field input::placeholder { color: #8A968F; }
.field-input svg { color: var(--m-muted); }
.phone-prefix {
    font-family: var(--m-mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--m-ink);
    background: #F4F3EF;
    border: 1px solid var(--m-hair-strong);
    border-right: 0;
    padding: 0 14px;
}
.pin-input { font-family: var(--m-mono); letter-spacing: 0.4em; }
.pin-toggle { width: 44px; height: 44px; }
.help-text { font-size: 12.5px; color: var(--m-muted); }

/* One button: 56px of ink, label left, arrow right. */
.btn {
    min-height: 56px;
    padding: 0 20px;
    justify-content: space-between;
    font-family: var(--m-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    background: var(--m-ink);
    border: 0;
    color: #fff;
    margin-top: 6px;
}
.btn:hover { background: var(--m-ink-deep); color: #fff; }
.btn svg { width: 20px; height: 20px; }
.btn:hover svg { transform: none; }
.btn:disabled { background: rgba(16, 30, 27, 0.22); color: #fff; }
.btn-secondary {
    justify-content: center;
    background: #fff;
    color: var(--m-ink);
    border: 1px solid var(--m-hair-strong);
}
.btn-secondary:hover { background: #F4F3EF; color: var(--m-ink); }

.consent {
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #3F4D47;
    align-items: flex-start;
}
.consent input { width: 22px; height: 22px; accent-color: var(--m-ink); flex-shrink: 0; margin-top: 0; }
.consent a, .consent-note a { color: var(--m-ink); font-weight: 600; text-underline-offset: 3px; }
.consent-note { font-size: 12.5px; color: var(--m-muted); text-align: left; margin-top: 14px; }

.error,
.dev-notice,
.message {
    border-radius: 0;
    font-family: var(--m-font);
    font-size: 13px;
    line-height: 1.45;
}

.trust-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 26px;
    font-family: var(--m-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--m-label);
}
.trust-row svg { color: #1F8A54; }
.foot-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 22px;
    margin-top: 14px;
}
.foot-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--m-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--m-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Sign-up extras */
.link-toggle {
    min-height: 44px;
    font-family: var(--m-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--m-ink);
}
.contact-channel-choice { min-height: 44px; font-size: 14px; }
.resend-timer { font-family: var(--m-mono); font-size: 12px; color: var(--m-muted); }

} /* end @media (max-width: 767px) */
