/* =========================================================
   WESA Scorekeepers Portal — Stylesheet
   ========================================================= */

/* --- CSS Variables / Theme --- */
:root {
    /* WESA brand colors (derived from their site) */
    --wesa-green: #2d8659;
    --wesa-green-dark: #1e5e3e;
    --wesa-green-light: #e8f5ee;
    --wesa-navy: #1a2744;
    --wesa-navy-light: #2a3d5e;

    /* UI colors */
    --bg: #f5f6f8;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f5;
    --text: #1a2236;
    --text-secondary: #5a6275;
    --text-muted: #8d95a6;
    --border: #e2e5eb;
    --border-light: #eef0f3;

    /* Status */
    --color-success: #2d8659;
    --color-warning: #d4880f;
    --color-danger: #c0392b;
    --color-info: #2874a6;

    /* Location colors */
    --loc-northwest: #2874a6;
    --loc-southwest: #8e44ad;
    --loc-centre: #d4880f;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(26,34,54,0.06);
    --shadow-md: 0 4px 12px rgba(26,34,54,0.08);
    --shadow-lg: 0 8px 24px rgba(26,34,54,0.1);

    /* Font */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--wesa-green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

/* --- Top Bar --- */
.top-bar {
    background: var(--wesa-navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: #fff;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    border-radius: 4px;
}

.logo-text { display: flex; flex-direction: column; }

.logo-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.logo-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
    font-weight: 500;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.nav-logout { color: rgba(255,255,255,0.5); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
}

/* --- Flash Messages --- */
.flash-container {
    max-width: 1100px;
    margin: var(--space-md) auto;
    padding: 0 var(--space-lg);
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    cursor: pointer;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success { background: #e8f5ee; color: #1e5e3e; border-left: 4px solid var(--wesa-green); }
.flash-error   { background: #fdeae8; color: #8b1a1a; border-left: 4px solid var(--color-danger); }
.flash-info    { background: #e8f0f8; color: #1a4a72; border-left: 4px solid var(--color-info); }
.flash-close   { background: none; border: none; font-size: 1.3rem; cursor: pointer; opacity: 0.5; }

/* --- Main Content --- */
.main-content {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) var(--space-2xl);
}

/* --- Auth Pages --- */
.page-auth .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--space-2xl);
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    height: 64px;
    width: auto;
    margin-bottom: var(--space-md);
    border-radius: 6px;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--wesa-navy);
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--wesa-green-light);
    color: var(--wesa-green);
    margin-bottom: var(--space-md);
}

.auth-icon-warn {
    background: #fef3e2;
    color: var(--color-warning);
}

.auth-info-box {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.auth-sep { color: var(--text-muted); }

/* --- Form Elements --- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--wesa-green);
    box-shadow: 0 0 0 3px rgba(45,134,89,0.12);
}

.phone-input-wrap {
    display: flex;
    align-items: stretch;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.phone-input-wrap input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* OTP digit inputs */
.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-digit {
    width: 48px !important;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0;
    border-radius: var(--radius-md) !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--wesa-green);
    color: #fff;
}
.btn-primary:hover { background: var(--wesa-green-dark); text-decoration: none; }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--bg); border-color: var(--text-muted); text-decoration: none; }

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}
.btn-danger:hover { background: #a93226; text-decoration: none; }

.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.84rem; }
.btn-xs { padding: 5px 10px; font-size: 0.78rem; border-radius: var(--radius-sm); }

.btn-text {
    background: none;
    border: none;
    color: var(--wesa-green);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px;
}
.btn-text:hover { text-decoration: underline; }

.inline-form { display: inline; }

/* --- Dashboard --- */
.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.dash-welcome h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: var(--wesa-navy);
}

.dash-welcome p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.dash-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* Calendar helper */
.cal-helper {
    background: var(--wesa-green-light);
    border: 1px solid rgba(45,134,89,0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.cal-helper-desc { font-size: 0.88rem; color: var(--text-secondary); margin: var(--space-sm) 0; }

.cal-url-box {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.cal-url-box input {
    flex: 1;
    font-family: monospace;
    font-size: 0.82rem;
    background: #fff;
}

.cal-instructions {
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}
.cal-instructions summary { cursor: pointer; color: var(--wesa-green-dark); font-weight: 500; }
.cal-steps { margin-top: var(--space-sm); }
.cal-steps p { margin-bottom: var(--space-sm); color: var(--text-secondary); }

/* Filters */
.dash-filters {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.15s;
    text-decoration: none;
}
.filter-chip:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.filter-chip.active {
    background: var(--wesa-navy);
    color: #fff;
    border-color: var(--wesa-navy);
}

/* Game List */
.date-group { margin-bottom: var(--space-xl); }

.date-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-light);
}

.date-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wesa-navy);
    letter-spacing: 0.01em;
}

.badge-today {
    background: var(--wesa-green);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Game Card */
.game-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-sm);
    transition: box-shadow 0.15s, border-color 0.15s;
}

.game-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

.game-mine {
    border-left: 4px solid var(--wesa-green);
    background: linear-gradient(90deg, rgba(45,134,89,0.03) 0%, var(--bg-card) 100%);
}

.game-cancelled {
    opacity: 0.55;
}

.game-time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    flex-shrink: 0;
}

.game-time {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wesa-navy);
}

.game-location {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.loc-northwest { background: #e8f0f8; color: var(--loc-northwest); }
.loc-southwest { background: #f3e8f8; color: var(--loc-southwest); }
.loc-centre    { background: #fef3e2; color: var(--loc-centre); }

.game-info-col {
    flex: 1;
    min-width: 0;
}

.game-matchup {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.team { font-weight: 600; }
.at-symbol { color: var(--text-muted); font-size: 0.82rem; }

.game-assignment-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: 4px;
}

.assignment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.assigned-me { color: var(--wesa-green); }
.assigned-other { color: var(--text-secondary); }
.available { color: var(--color-info); }
.waitlisted-me { color: var(--color-warning); font-style: italic; }
.waitlist-count { font-size: 0.78rem; color: var(--text-muted); }

.game-action-col {
    flex-shrink: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge-rescheduled { background: #fef3e2; color: var(--color-warning); }
.badge-cancelled   { background: #fdeae8; color: var(--color-danger); }
.badge-scheduled   { background: var(--wesa-green-light); color: var(--wesa-green); }
.badge-admin       { background: var(--wesa-navy); color: #fff; }
.badge-user        { background: var(--bg); color: var(--text-secondary); }

.badge-location {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}
.empty-state svg { margin-bottom: var(--space-md); opacity: 0.4; }
.empty-state p { font-size: 0.95rem; }

/* --- Admin --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.stat-card.stat-accent {
    background: var(--wesa-green);
    color: #fff;
    border-color: var(--wesa-green);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

.admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.admin-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s;
}
.admin-nav-card:hover {
    border-color: var(--wesa-green);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--wesa-green);
}
.admin-nav-card svg { color: var(--wesa-green); }

.admin-section {
    margin-bottom: var(--space-xl);
}

.admin-section h2 {
    font-size: 1.15rem;
    margin-bottom: var(--space-md);
    color: var(--wesa-navy);
}

/* Data Tables */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

.row-inactive td { opacity: 0.5; }
.td-name { font-weight: 600; }
.td-mono { font-family: 'DM Mono', monospace; font-size: 0.84rem; }
.td-actions { white-space: nowrap; }
.td-actions form { display: inline; margin-right: 4px; }

.text-muted { color: var(--text-muted); }

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}
.status-active { background: var(--wesa-green); }
.status-inactive { background: var(--text-muted); }

/* Inline add form */
.inline-add-form .form-row {
    display: flex;
    gap: var(--space-md);
    align-items: flex-end;
    flex-wrap: wrap;
}

.inline-add-form .form-group { flex: 1; min-width: 140px; margin-bottom: 0; }
.inline-add-form .form-group-check { flex: 0; min-width: auto; padding-bottom: 10px; }
.inline-add-form .form-group-check label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.inline-add-form .form-group-btn { flex: 0; }

/* Import page */
.import-info { margin-bottom: var(--space-xl); }

.csv-example {
    background: var(--wesa-navy);
    color: #a8d8b8;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-family: 'DM Mono', monospace;
    font-size: 0.84rem;
    line-height: 1.8;
    margin: var(--space-md) 0;
    overflow-x: auto;
}

.csv-rules {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.csv-rules p { margin-bottom: 4px; }

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    color: var(--text-secondary);
}

.file-upload-area:hover, .file-upload-area.dragover {
    border-color: var(--wesa-green);
    background: var(--wesa-green-light);
}

.file-upload-area svg { margin-bottom: var(--space-sm); opacity: 0.5; }
.file-upload-area input[type="file"] { display: none; }
.file-upload-area p { font-size: 0.9rem; margin-bottom: 4px; }
.file-name { font-weight: 600; color: var(--wesa-green); }

.import-form { max-width: 500px; }

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,39,68,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: var(--space-lg);
}

.modal-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.modal-card h2 {
    margin-bottom: var(--space-lg);
    font-size: 1.2rem;
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-lg);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: var(--space-lg);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-card);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-sep { margin: 0 4px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
    .top-bar-inner { padding: 0 var(--space-md); }

    .mobile-menu-btn { display: block; }

    .top-nav {
        display: none;
        position: absolute;
        top: 62px;
        right: 0;
        left: 0;
        background: var(--wesa-navy);
        flex-direction: column;
        padding: var(--space-md);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .top-nav.open { display: flex; }
    .nav-link { width: 100%; justify-content: flex-start; padding: 12px 16px; }

    .main-content { padding: var(--space-lg) var(--space-md); }

    .dash-header { flex-direction: column; }
    .dash-actions { width: 100%; }
    .dash-actions .btn { flex: 1; }

    .dash-filters { flex-direction: column; gap: var(--space-sm); }

    .game-card {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .game-time-col {
        flex-direction: row;
        justify-content: space-between;
        min-width: 0;
    }

    .game-action-col {
        width: 100%;
    }
    .game-action-col .btn { width: 100%; }

    .otp-digit {
        width: 42px !important;
        height: 50px;
        font-size: 1.3rem;
    }

    .inline-add-form .form-row {
        flex-direction: column;
    }
    .inline-add-form .form-group { min-width: 100%; }
    .inline-add-form .form-group-btn { width: 100%; }
    .inline-add-form .form-group-btn .btn { width: 100%; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-nav-grid { grid-template-columns: repeat(2, 1fr); }

    .auth-card {
        padding: var(--space-xl) var(--space-lg);
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 400px) {
    .logo-tagline { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .otp-input-group { gap: 6px; }
    .otp-digit { width: 36px !important; height: 44px; font-size: 1.1rem; }
}
