/* ==========================================================================
   Waviator ERP — sign-in / forgot-password pages
   Split screen: dark brand panel (copy, features, stats and a picture of the
   app) on the left, the sign-in card on the right. Light and dark themes
   (html[data-theme], set by assets/js/wv-auth-theme.js).
   Mobile first: phones get a slim logo strip above the card; the brand panel
   opens up from 992px and the app picture from 1280px.
   ========================================================================== */

:root {
    --wv-auth-bg: #f4f6fb;
    --wv-auth-surface: #ffffff;
    --wv-auth-border: #e2e8f0;
    --wv-auth-input-bg: #ffffff;
    --wv-auth-input-border: #d5dbe5;
    --wv-auth-text: #0f172a;
    --wv-auth-label: #1e293b;
    --wv-auth-muted: #64748b;
    --wv-auth-soft: #94a3b8;
    --wv-auth-primary: #4f46e5;
    --wv-auth-primary-hover: #4338ca;
    --wv-auth-primary-deep: #3730a3;
    --wv-auth-accent: #7ed957;        /* logo green */
    --wv-auth-brand-dark: #15123d;
    --wv-auth-brand: #2a238f;
    --wv-auth-danger: #dc2626;
    --wv-auth-danger-border: #ef4444;
    --wv-auth-danger-bg: #fef2f2;
    --wv-auth-success: #10b981;
    --wv-auth-info-bg: #eef2ff;
    --wv-auth-card-shadow: 0 30px 60px -20px rgba(30, 27, 75, 0.18), 0 10px 25px -10px rgba(30, 27, 75, 0.08);
    /* The logo file is white + green: shown as-is on dark backgrounds, recoloured on light ones. */
    --wv-auth-logo-filter: invert(1) hue-rotate(180deg) saturate(1.4);
    --wv-auth-font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Noto Sans', sans-serif;
}

html[data-theme="dark"] {
    --wv-auth-bg: #0b0a1f;
    --wv-auth-surface: #15132f;
    --wv-auth-border: #2a2750;
    --wv-auth-input-bg: #1b1938;
    --wv-auth-input-border: #34306a;
    --wv-auth-text: #eef0ff;
    --wv-auth-label: #dfe3ff;
    --wv-auth-muted: #a3a8cc;
    --wv-auth-soft: #7d82ad;
    --wv-auth-primary: #6366f1;
    --wv-auth-primary-hover: #7c7ff5;
    --wv-auth-primary-deep: #a5b4fc;
    --wv-auth-danger: #fca5a5;
    --wv-auth-danger-border: #f87171;
    --wv-auth-danger-bg: rgba(239, 68, 68, 0.12);
    --wv-auth-info-bg: rgba(99, 102, 241, 0.15);
    --wv-auth-card-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    --wv-auth-logo-filter: none;
    color-scheme: dark;
}

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

html,
body {
    min-height: 100%;
    margin: 0;
}

body.wv-auth-body {
    font-family: var(--wv-auth-font);
    font-size: 14px;
    color: var(--wv-auth-text);
    background-color: var(--wv-auth-bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.wv-auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Brand panel (left) — on phones only a logo strip
   ========================================================================== */
.wv-auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(99, 102, 241, 0.35), transparent 55%),
        linear-gradient(150deg, var(--wv-auth-brand-dark) 0%, #1c1863 45%, var(--wv-auth-brand) 100%);
    color: #fff;
}
.wv-auth-brand-inner { position: relative; z-index: 2; width: 100%; max-width: 520px; }
.wv-auth-brand-logo { display: block; height: 30px; width: auto; margin: 0 auto; }
.wv-auth-tagline,
.wv-auth-brand-copy,
.wv-auth-stats,
.wv-auth-preview,
.wv-auth-orb { display: none; }

/* ==========================================================================
   Form side (right)
   ========================================================================== */
.wv-auth-main {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 16px 28px;
}

/* Light / dark switch, top right */
.wv-theme-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: var(--wv-auth-surface);
    box-shadow: 0 6px 18px -6px rgba(30, 27, 75, 0.25);
}
.wv-theme-btn {
    width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--wv-auth-soft);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.wv-theme-btn:hover { color: var(--wv-auth-primary); }
.wv-theme-btn.is-active { background: var(--wv-auth-primary); color: #fff; }
.wv-theme-btn:focus-visible { outline: 2px solid var(--wv-auth-primary); outline-offset: 2px; }

/* Decorations behind the card */
.wv-auth-blob,
.wv-auth-dots { display: none; }

.wv-auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    padding: 24px 20px 18px;
    background: var(--wv-auth-surface);
    border: 1px solid var(--wv-auth-border);
    border-radius: 18px;
    box-shadow: var(--wv-auth-card-shadow);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.wv-auth-card-logo {
    display: block;
    height: 30px;
    width: auto;
    margin: 0 auto 16px;
    filter: var(--wv-auth-logo-filter);
}

.wv-auth-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--wv-auth-text);
}
.wv-auth-subtitle {
    margin: 0 0 16px;
    font-size: 13.5px;
    color: var(--wv-auth-muted);
}

/* --- Fields --- */
.wv-field { margin-bottom: 12px; }
.wv-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
/* Small note on the right of a label (e.g. who to ask for the company code) */
.wv-field-aside { font-size: 12px; color: var(--wv-auth-soft); }
.wv-label {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--wv-auth-label);
}
.wv-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wv-auth-primary);
    text-decoration: none;
}
.wv-link:hover { color: var(--wv-auth-primary-deep); text-decoration: underline; }

.wv-input-wrap { position: relative; display: flex; align-items: center; }
.wv-input-icon {
    position: absolute;
    left: 15px;
    color: var(--wv-auth-soft);
    font-size: 14px;
    pointer-events: none;
}
.wv-input {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 44px 0 42px;
    font-family: inherit;
    font-size: 16px; /* 16px stops iOS from zooming on focus */
    color: var(--wv-auth-text);
    background-color: var(--wv-auth-input-bg);
    border: 1px solid var(--wv-auth-input-border);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.wv-input::placeholder { color: var(--wv-auth-soft); }
.wv-input:focus {
    outline: none;
    border-color: var(--wv-auth-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}
.wv-input.is-invalid { border-color: var(--wv-auth-danger-border); background: var(--wv-auth-danger-bg); }
.wv-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }

/* Company code: shown in capitals like the stored code */
.wv-input-code { text-transform: uppercase; letter-spacing: 0.06em; }
.wv-input-code::placeholder { text-transform: none; letter-spacing: normal; }

.wv-toggle-password {
    position: absolute;
    right: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--wv-auth-soft);
    font-size: 15px;
    cursor: pointer;
}
.wv-toggle-password:hover { color: var(--wv-auth-primary); }
.wv-toggle-password:focus-visible { outline: 2px solid var(--wv-auth-primary); outline-offset: 1px; }

.wv-caps-hint {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #b45309;
}
.wv-caps-hint.is-visible { display: block; }

/* "Remember company code" checkbox */
.wv-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 14px;
    font-size: 13px;
    color: var(--wv-auth-label);
    cursor: pointer;
}
.wv-remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--wv-auth-primary); cursor: pointer; }

/* OTP sign-in: switching between password and code sign-in */
.wv-auth-hidden { display: none !important; }
.wv-auth-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 0; }
.wv-link-btn { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.wv-link-btn i { margin-right: 4px; }
.wv-link-btn:disabled { color: var(--wv-auth-soft); cursor: default; text-decoration: none; }

/* --- Messages --- */
.wv-auth-msg {
    display: none;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.wv-auth-msg.is-visible { display: flex; }
.wv-auth-msg.is-error { color: var(--wv-auth-danger); background: var(--wv-auth-danger-bg); border: 1px solid rgba(239, 68, 68, 0.3); }
.wv-auth-msg.is-info { color: var(--wv-auth-primary-deep); background: var(--wv-auth-info-bg); border: 1px solid rgba(99, 102, 241, 0.3); display: flex; }
.wv-auth-msg i { margin-top: 2px; }

/* --- Button --- */
.wv-btn-auth {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wv-auth-primary) 0%, #3b2fd6 100%);
    color: #fff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px -10px rgba(79, 70, 229, 0.65);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.wv-btn-auth.login { justify-content: flex-start; }
.wv-btn-auth .wv-btn-arrow { margin-left: auto; transition: transform 0.2s ease; }
.wv-btn-auth:hover { color: #fff; box-shadow: 0 16px 28px -10px rgba(79, 70, 229, 0.75); }
.wv-btn-auth:hover .wv-btn-arrow { transform: translateX(3px); }
.wv-btn-auth:active { transform: translateY(1px); }
.wv-btn-auth:focus-visible { outline: 2px solid var(--wv-auth-primary-deep); outline-offset: 3px; }
.wv-btn-auth:disabled { background: var(--wv-auth-soft); box-shadow: none; cursor: not-allowed; }
.wv-btn-auth.is-success,
.wv-btn-auth.is-success:disabled { background: var(--wv-auth-success); box-shadow: none; }

.wv-auth-foot {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--wv-auth-soft);
}

/* ==========================================================================
   ≥ 576px
   ========================================================================== */
@media (min-width: 576px) {
    .wv-auth-main { padding: 60px 24px 28px; }
    .wv-auth-card { padding: 28px 32px 22px; border-radius: 20px; }
    .wv-auth-card-logo { height: 34px; margin-bottom: 20px; }
    .wv-auth-title { font-size: 24px; }
}

/* ==========================================================================
   ≥ 992px — split screen
   ========================================================================== */
@media (min-width: 992px) {
    /* One screen: both halves are exactly the window height (no page scroll). */
    .wv-auth-shell { flex-direction: row; height: 100vh; height: 100dvh; min-height: 0; }

    .wv-auth-brand {
        flex: 0 0 50%;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 48px;
    }
    .wv-auth-brand-logo { height: 38px; margin: 0 0 10px; }
    .wv-auth-tagline {
        display: block;
        margin: 0 0 30px;
        font-size: 12.5px;
        font-weight: 500;
        letter-spacing: 0.42em;
        text-transform: uppercase;
        color: rgba(224, 231, 255, 0.7);
    }
    .wv-auth-tagline span { margin: 0 0.6em; color: rgba(224, 231, 255, 0.45); }

    .wv-auth-brand-copy { display: block; }
    .wv-auth-brand-copy h2 {
        margin: 0 0 12px;
        font-size: 36px;
        font-weight: 800;
        line-height: 1.12;
        letter-spacing: -0.03em;
        color: #fff;
    }
    .wv-auth-brand-copy h2 em { font-style: normal; color: var(--wv-auth-accent); }
    .wv-auth-brand-copy > p { margin: 0 0 22px; max-width: 440px; font-size: 15px; line-height: 1.55; color: #c7cdf7; }

    .wv-auth-points { list-style: none; margin: 0 0 26px; padding: 0; }
    .wv-auth-points li { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
    .wv-auth-point-icon {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: linear-gradient(145deg, rgba(129, 140, 248, 0.45), rgba(79, 70, 229, 0.25));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
        color: #e0e7ff;
        font-size: 17px;
    }
    .wv-auth-point-text strong { display: block; font-size: 15px; font-weight: 600; color: #fff; }
    .wv-auth-point-text small { display: block; margin-top: 2px; font-size: 12.5px; color: #b9bfe9; }

    .wv-auth-stats {
        display: flex;
        max-width: 560px;
        padding: 12px 6px;
        border: 1px solid rgba(165, 180, 252, 0.25);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(6px);
    }
    .wv-auth-stat {
        flex: 1 1 0;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 16px;
    }
    .wv-auth-stat + .wv-auth-stat { border-left: 1px solid rgba(165, 180, 252, 0.2); }
    .wv-auth-stat > i { color: #a5b4fc; font-size: 20px; }
    .wv-auth-stat strong { display: block; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.1; }
    .wv-auth-stat small { display: block; margin-top: 3px; font-size: 11.5px; color: #b9bfe9; white-space: nowrap; }

    .wv-auth-orb { display: block; position: absolute; border-radius: 50%; pointer-events: none; }
    .wv-auth-orb-top {
        top: -120px;
        right: 8%;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle at 35% 35%, rgba(129, 140, 248, 0.55), rgba(67, 56, 202, 0.15) 70%);
    }
    .wv-auth-orb-middle {
        top: 52%;
        right: 34%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle at 35% 35%, rgba(99, 102, 241, 0.5), rgba(49, 46, 129, 0.1) 70%);
    }
    .wv-auth-orb-bottom {
        bottom: -140px;
        left: -100px;
        width: 340px;
        height: 340px;
        background: radial-gradient(circle at 60% 40%, rgba(99, 102, 241, 0.6), rgba(30, 27, 75, 0.1) 70%);
    }

    /* The form side scrolls on its own only if a window is too short even for the compact card. */
    .wv-auth-main { align-items: center; padding: 24px 48px; overflow-y: auto; }
    .wv-theme-toggle { top: 18px; right: 24px; }
    .wv-auth-card { margin: auto 0; padding: 30px 40px 22px; }

    .wv-auth-blob {
        display: block;
        position: absolute;
        z-index: 1;
        top: 9%;
        left: 6%;
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 35%, #a7f08a, #4cc93a 75%);
        opacity: 0.85;
        filter: blur(0.5px);
    }
    .wv-auth-dots {
        display: block;
        position: absolute;
        z-index: 1;
        right: 24px;
        bottom: 24px;
        width: 90px;
        height: 72px;
        background-image: radial-gradient(var(--wv-auth-primary) 1.6px, transparent 1.8px);
        background-size: 18px 18px;
        opacity: 0.55;
    }
}

/* ==========================================================================
   ≥ 1280px — wider brand panel with the picture of the app
   ========================================================================== */
@media (min-width: 1280px) {
    /* The copy keeps a fixed width; the picture starts to its right and runs off the panel edge. */
    .wv-auth-brand {
        --wv-auth-brand-padding: 64px;
        --wv-auth-copy-width: 470px;
        flex: 0 0 60%;
        padding: 40px var(--wv-auth-brand-padding);
    }
    .wv-auth-brand-copy h2 { font-size: 38px; }

    .wv-auth-preview {
        display: block;
        position: absolute;
        z-index: 1;
        top: 18%;
        left: calc(var(--wv-auth-brand-padding) + var(--wv-auth-copy-width) + 70px);
        width: 520px;
        perspective: 1400px;
        pointer-events: none;
    }
    .wv-preview-window {
        display: flex;
        height: min(540px, 70vh);
        border-radius: 18px;
        overflow: hidden;
        background: #f8f9ff;
        box-shadow: -30px 40px 80px -20px rgba(5, 4, 30, 0.7);
        transform: rotateY(-22deg) rotateX(8deg) rotateZ(-6deg);
        transform-origin: left center;
        font-size: 10px;
        color: #1e1b4b;
    }
    .wv-preview-sidebar {
        flex: 0 0 140px;
        padding: 16px 10px;
        background: linear-gradient(180deg, #1e1a66, #151247);
    }
    .wv-preview-logo { display: block; height: 14px; width: auto; margin: 0 6px 16px; }
    .wv-preview-nav {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
        padding: 7px 8px;
        border-radius: 7px;
        color: #c7cdf7;
        font-size: 10px;
    }
    .wv-preview-nav i { width: 12px; color: #8b93e8; }
    .wv-preview-nav.is-active { background: linear-gradient(135deg, #5b55f0, #4338ca); color: #fff; }
    .wv-preview-nav.is-active i { color: #fff; }

    .wv-preview-content { flex: 1; padding: 14px 16px; min-width: 0; }
    .wv-preview-search {
        display: flex;
        align-items: center;
        height: 22px;
        margin-bottom: 14px;
        padding: 0 8px;
        border-radius: 6px;
        background: #eceefb;
        color: #9aa0c7;
    }
    .wv-preview-greeting { margin: 0; font-size: 14px; font-weight: 700; }
    .wv-preview-greeting i { color: #f5b942; }
    .wv-preview-sub { margin: 2px 0 12px; color: #8b90b5; font-size: 9px; }
    .wv-preview-stats { display: flex; gap: 8px; margin-bottom: 12px; }
    .wv-preview-stat {
        flex: 1;
        padding: 8px;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 4px 10px -6px rgba(30, 27, 75, 0.25);
    }
    .wv-preview-stat small,
    .wv-preview-panel small { display: block; color: #8b90b5; font-size: 8.5px; }
    .wv-preview-stat strong { display: block; margin: 3px 0 2px; font-size: 15px; }
    .wv-preview-stat em { font-style: normal; font-size: 8px; color: #16a34a; }
    .wv-preview-panel {
        margin-bottom: 10px;
        padding: 8px 10px;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 4px 10px -6px rgba(30, 27, 75, 0.25);
    }
    .wv-preview-panel small { margin-bottom: 6px; font-weight: 700; color: #1e1b4b; font-size: 10px; }
    .wv-preview-bars { display: flex; align-items: flex-end; gap: 10px; height: 70px; padding: 0 4px; }
    .wv-preview-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #818cf8, #4f46e5); }
    .wv-preview-bars span:nth-child(1) { height: 12%; }
    .wv-preview-bars span:nth-child(2) { height: 30%; }
    .wv-preview-bars span:nth-child(3) { height: 38%; }
    .wv-preview-bars span:nth-child(4) { height: 52%; }
    .wv-preview-bars span:nth-child(5) { height: 74%; }
    .wv-preview-bars span:nth-child(6) { height: 46%; }
    .wv-preview-bars span:nth-child(7) { height: 62%; background: linear-gradient(180deg, #a7f08a, #3fbf2f); }
    .wv-preview-bars span:nth-child(8) { height: 55%; }
    .wv-preview-bars span:nth-child(9) { height: 92%; background: linear-gradient(180deg, #a7f08a, #3fbf2f); }
    .wv-preview-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid #f0f1fa; }
    .wv-preview-line { flex: 1; height: 6px; border-radius: 4px; background: #e3e6f5; }
    .wv-preview-pill { padding: 2px 8px; border-radius: 999px; font-size: 8px; font-weight: 600; }
    .wv-preview-pill.is-approved { background: #dcfce7; color: #15803d; }
    .wv-preview-pill.is-pending { background: #fef3c7; color: #b45309; }
    .wv-preview-pill.is-delivered { background: #e0e7ff; color: #4338ca; }

    .wv-preview-badge {
        position: absolute;
        z-index: 2;
        top: -64px;
        left: 40px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 18px;
        border: 1px solid rgba(165, 180, 252, 0.3);
        border-radius: 16px;
        background: rgba(49, 46, 129, 0.55);
        backdrop-filter: blur(8px);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
        color: #e0e7ff;
        font-size: 14px;
        line-height: 1.3;
        transform: rotate(-6deg);
    }
    .wv-preview-badge-icon {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: linear-gradient(145deg, #7ed957, #3fbf2f);
        color: #0f3d0a;
        font-size: 17px;
    }
    .wv-preview-plane {
        position: absolute;
        z-index: 2;
        top: 30px;
        left: -60px;
        color: #a5b4fc;
        font-size: 26px;
        transform: rotate(-20deg);
    }

    .wv-auth-brand-inner { max-width: var(--wv-auth-copy-width); }
    .wv-auth-stats { max-width: none; }
}

@media (min-width: 1600px) {
    .wv-auth-brand { --wv-auth-brand-padding: 96px; --wv-auth-copy-width: 520px; }
    .wv-auth-brand-copy h2 { font-size: 44px; }
    .wv-auth-preview { width: 580px; }
}

/* ==========================================================================
   Short desktop windows (most laptops): tighter still, so nothing scrolls
   ========================================================================== */
@media (min-width: 992px) and (max-height: 780px) {
    .wv-auth-brand { padding-top: 28px; padding-bottom: 28px; }
    .wv-auth-brand-logo { height: 32px; }
    .wv-auth-tagline { margin-bottom: 20px; font-size: 11.5px; }
    .wv-auth-brand-copy h2 { font-size: 32px; }
    .wv-auth-brand-copy > p { margin-bottom: 16px; font-size: 14px; }
    .wv-auth-points { margin-bottom: 18px; }
    .wv-auth-points li { margin-bottom: 9px; }
    .wv-auth-point-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
    .wv-auth-point-text strong { font-size: 14px; }
    .wv-auth-point-text small { font-size: 12px; }
    .wv-auth-stats { padding: 9px 4px; }
    .wv-auth-stat strong { font-size: 16px; }

    .wv-auth-main { padding-top: 16px; padding-bottom: 16px; }
    .wv-auth-card { padding: 22px 36px 16px; }
    .wv-auth-card-logo { height: 28px; margin-bottom: 14px; }
    .wv-auth-title { font-size: 22px; }
    .wv-auth-subtitle { margin-bottom: 12px; }
    .wv-field { margin-bottom: 10px; }
    .wv-field-head { margin-bottom: 4px; }
    .wv-input { height: 42px; }
    .wv-remember { margin-bottom: 12px; }
    .wv-btn-auth { height: 46px; }
    .wv-auth-foot { margin-top: 10px; }
}

/* Very short windows: drop the extras (the brand panel already shows the logo). */
@media (min-width: 992px) and (max-height: 640px) {
    .wv-auth-tagline,
    .wv-auth-stats,
    .wv-auth-point-text small,
    .wv-auth-card-logo { display: none; }
    .wv-auth-brand-copy h2 { font-size: 28px; }
    .wv-auth-brand-logo { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    body.wv-auth-body,
    .wv-auth-card,
    .wv-input,
    .wv-btn-auth,
    .wv-btn-auth .wv-btn-arrow,
    .wv-theme-btn { transition: none; }
}
