/**
 * Gridiron Command - Unified Auth & Onboarding Styles
 *
 * Shared styles for all authentication and onboarding flows:
 * - /referee/index.html (Referee login)
 * - /coach/index.html (Coach login)
 * - /platform/index.html (League Admin login)
 * - /parent/index.html (Parent portal)
 *
 * Include after design_system.css:
 * <link rel="stylesheet" href="../css/design_system.css">
 * <link rel="stylesheet" href="../css/auth.css">
 */

/* ============================================
   CSS VARIABLES - Auth Theme
   ============================================ */
:root {
    /* Auth-specific colors */
    --auth-bg: #0a0d14;
    --auth-card-bg: linear-gradient(135deg, rgba(30, 36, 51, 0.9), rgba(18, 22, 31, 0.95));
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-border-hover: rgba(255, 255, 255, 0.15);

    /* Product accent colors */
    --auth-accent-coach: #22c55e;      /* Green - Coach App */
    --auth-accent-referee: #f59e0b;    /* Gold - Referee App */
    --auth-accent-platform: #8b5cf6;   /* Purple - Platform */
    --auth-accent-parent: #3b82f6;     /* Blue - Parent Portal */

    /* Text */
    --auth-text-primary: #ffffff;
    --auth-text-secondary: #9ca3af;
    --auth-text-muted: #6b7280;

    /* Fonts */
    --auth-font-display: 'Saira Condensed', 'Rajdhani', system-ui, sans-serif;
    --auth-font-body: 'Rajdhani', system-ui, sans-serif;

    /* Transitions */
    --auth-transition: 200ms ease;
    --auth-transition-slow: 300ms ease;
}

/* ============================================
   BASE LAYOUT
   ============================================ */
.auth-page {
    font-family: var(--auth-font-body);
    background: var(--auth-bg);
    color: var(--auth-text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.auth-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: authGridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Product-specific grid colors */
.auth-page--coach .auth-bg-grid {
    background-image:
        linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
}

.auth-page--referee .auth-bg-grid {
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
}

.auth-page--platform .auth-bg-grid {
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
}

@keyframes authGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Glowing orbs */
.auth-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.auth-orb--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.auth-orb--2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
}

/* Product-specific orb colors */
.auth-page--coach .auth-orb--1 { background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%); }
.auth-page--coach .auth-orb--2 { background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%); }

.auth-page--referee .auth-orb--1 { background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%); }
.auth-page--referee .auth-orb--2 { background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%); }

.auth-page--platform .auth-orb--1 { background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%); }
.auth-page--platform .auth-orb--2 { background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%); }

/* ============================================
   CONTAINER
   ============================================ */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
}

.auth-container--wide {
    max-width: 500px;
}

/* ============================================
   LOGO SECTION
   ============================================ */
.auth-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.auth-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.auth-page--coach .auth-logo { filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.3)); }
.auth-page--referee .auth-logo { filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3)); }
.auth-page--platform .auth-logo { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3)); }

.auth-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-product-tag {
    font-family: var(--auth-font-display);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.auth-page--coach .auth-product-tag {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #0a0d14;
}

.auth-page--referee .auth-product-tag {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0a0d14;
}

.auth-page--platform .auth-product-tag {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.auth-beta-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--auth-text-muted);
    letter-spacing: 1px;
}

/* ============================================
   CARD
   ============================================ */
.auth-card {
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-border);
    border-radius: 20px;
    padding: 32px 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: authCardAppear 0.5s ease-out;
}

@keyframes authCardAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-card-title {
    font-family: var(--auth-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-card-subtitle {
    font-size: 0.95rem;
    color: var(--auth-text-secondary);
}

/* ============================================
   TABS (Sign In / Sign Up toggle)
   ============================================ */
.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--auth-font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--auth-text-muted);
    cursor: pointer;
    transition: all var(--auth-transition);
}

.auth-tab:hover {
    color: var(--auth-text-secondary);
}

.auth-tab.active {
    color: var(--auth-bg);
}

.auth-page--coach .auth-tab.active { background: linear-gradient(135deg, #22c55e, #16a34a); }
.auth-page--referee .auth-tab.active { background: linear-gradient(135deg, #f59e0b, #d97706); }
.auth-page--platform .auth-tab.active { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* ============================================
   FORM ELEMENTS
   ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form.hidden {
    display: none;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--auth-text-muted);
    text-transform: uppercase;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--auth-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--auth-text-primary);
    transition: all var(--auth-transition);
    outline: none;
}

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

.auth-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.auth-page--coach .auth-input:focus { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.auth-page--referee .auth-input:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }
.auth-page--platform .auth-input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }

.auth-input.error {
    border-color: #ef4444;
}

.auth-input-icon {
    position: absolute;
    right: 14px;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color var(--auth-transition);
}

.auth-input-icon:hover {
    color: var(--auth-text-primary);
}

.auth-input-icon svg,
.auth-input-icon i {
    width: 18px;
    height: 18px;
}

/* ============================================
   BUTTONS
   ============================================ */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 16px 28px;
    font-family: var(--auth-font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--auth-transition);
}

.auth-btn svg,
.auth-btn i {
    width: 18px;
    height: 18px;
}

/* Primary button - uses product accent color */
.auth-btn--primary {
    color: var(--auth-bg);
}

.auth-page--coach .auth-btn--primary { background: linear-gradient(135deg, #22c55e, #16a34a); }
.auth-page--referee .auth-btn--primary { background: linear-gradient(135deg, #f59e0b, #d97706); }
.auth-page--platform .auth-btn--primary { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.auth-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.auth-page--coach .auth-btn--primary:hover { box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4); }
.auth-page--referee .auth-btn--primary:hover { box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4); }
.auth-page--platform .auth-btn--primary:hover { box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4); }

.auth-btn--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Ghost button */
.auth-btn--ghost {
    background: transparent;
    border: 2px solid var(--auth-border);
    color: var(--auth-text-secondary);
}

.auth-btn--ghost:hover {
    border-color: var(--auth-border-hover);
    color: var(--auth-text-primary);
}

/* Back button */
.auth-btn--back {
    background: transparent;
    border: none;
    color: var(--auth-text-muted);
    padding: 8px;
}

.auth-btn--back:hover {
    color: var(--auth-text-primary);
}

/* Full width */
.auth-btn--full {
    width: 100%;
}

/* Loading state */
.auth-btn.loading .auth-btn-content {
    display: none;
}

.auth-btn .auth-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
}

.auth-btn.loading .auth-spinner {
    display: block;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   MESSAGES
   ============================================ */
.auth-message {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-message.show {
    display: flex;
}

.auth-message svg,
.auth-message i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.auth-message--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.auth-message--warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.auth-message--info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* ============================================
   DIVIDER
   ============================================ */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
    color: var(--auth-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* ============================================
   ONBOARDING OPTIONS (3-path selection)
   ============================================ */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--auth-transition);
    text-align: left;
}

.auth-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--auth-border-hover);
}

.auth-page--coach .auth-option:hover { border-color: rgba(34, 197, 94, 0.5); }
.auth-page--referee .auth-option:hover { border-color: rgba(245, 158, 11, 0.5); }
.auth-page--platform .auth-option:hover { border-color: rgba(139, 92, 246, 0.5); }

.auth-option.selected {
    background: rgba(255, 255, 255, 0.08);
}

.auth-page--coach .auth-option.selected { border-color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.auth-page--referee .auth-option.selected { border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.auth-page--platform .auth-option.selected { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }

.auth-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.auth-page--coach .auth-option-icon { background: rgba(34, 197, 94, 0.15); }
.auth-page--referee .auth-option-icon { background: rgba(245, 158, 11, 0.15); }
.auth-page--platform .auth-option-icon { background: rgba(139, 92, 246, 0.15); }

.auth-option-content {
    flex: 1;
}

.auth-option-title {
    font-family: var(--auth-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    margin-bottom: 4px;
}

.auth-option-desc {
    font-size: 0.85rem;
    color: var(--auth-text-muted);
}

.auth-option-arrow {
    color: var(--auth-text-muted);
    transition: transform var(--auth-transition);
}

.auth-option:hover .auth-option-arrow {
    transform: translateX(4px);
}

.auth-option-arrow svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   ONBOARDING WIZARD (multi-step)
   ============================================ */
.auth-wizard {
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--auth-border);
    margin-bottom: 24px;
}

.auth-wizard-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.auth-progress-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.auth-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width var(--auth-transition-slow);
}

.auth-page--coach .auth-progress-fill { background: linear-gradient(90deg, #22c55e, #16a34a); }
.auth-page--referee .auth-progress-fill { background: linear-gradient(90deg, #f59e0b, #d97706); }
.auth-page--platform .auth-progress-fill { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }

.auth-progress-text {
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    font-weight: 600;
}

.auth-wizard-step {
    animation: authFadeIn 0.3s ease;
}

.auth-step-title {
    font-family: var(--auth-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-step-subtitle {
    font-size: 0.9rem;
    color: var(--auth-text-secondary);
    margin-bottom: 24px;
}

.auth-wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--auth-border);
    margin-top: 24px;
}

/* ============================================
   OPTION GRIDS (for selections)
   ============================================ */
.auth-option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.auth-option-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.auth-option-btn {
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    color: var(--auth-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--auth-transition);
    text-align: center;
}

.auth-option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--auth-border-hover);
}

.auth-option-btn.selected {
    color: var(--auth-bg);
}

.auth-page--coach .auth-option-btn.selected { background: rgba(34, 197, 94, 0.2); border-color: #22c55e; color: #22c55e; }
.auth-page--referee .auth-option-btn.selected { background: rgba(245, 158, 11, 0.2); border-color: #f59e0b; color: #f59e0b; }
.auth-page--platform .auth-option-btn.selected { background: rgba(139, 92, 246, 0.2); border-color: #8b5cf6; color: #8b5cf6; }

.auth-option-btn-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
    display: block;
}

/* ============================================
   TOGGLE SWITCHES
   ============================================ */
.auth-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-toggle-label {
    color: var(--auth-text-secondary);
    font-size: 0.9rem;
}

.auth-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    cursor: pointer;
    transition: background var(--auth-transition);
    border: none;
    padding: 0;
}

.auth-toggle.active {
    background: #22c55e;
}

.auth-page--referee .auth-toggle.active { background: #f59e0b; }
.auth-page--platform .auth-toggle.active { background: #8b5cf6; }

.auth-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--auth-transition);
}

.auth-toggle.active .auth-toggle-knob {
    transform: translateX(22px);
}

/* ============================================
   PIN ENTRY
   ============================================ */
.auth-pin-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-pin-digit {
    width: 44px;
    height: 52px;
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--auth-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    background: rgba(0, 0, 0, 0.3);
    transition: all var(--auth-transition);
}

.auth-pin-digit.filled {
    border-color: var(--auth-text-secondary);
}

.auth-page--referee .auth-pin-digit.filled { border-color: #f59e0b; }

.auth-pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 280px;
    margin: 0 auto;
}

.auth-pin-key {
    height: 56px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--auth-text-primary);
    font-family: var(--auth-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--auth-transition);
}

.auth-pin-key:hover {
    background: rgba(255, 255, 255, 0.15);
}

.auth-pin-key:active {
    transform: scale(0.95);
}

.auth-pin-key.action {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
}

.auth-pin-key.go {
    font-weight: 800;
}

.auth-page--referee .auth-pin-key.go { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0a0d14; }
.auth-page--coach .auth-pin-key.go { background: linear-gradient(135deg, #22c55e, #16a34a); color: #0a0d14; }

/* ============================================
   WELCOME ICON (success states)
   ============================================ */
.auth-welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page--coach .auth-welcome-icon { background: linear-gradient(135deg, #22c55e, #16a34a); }
.auth-page--referee .auth-welcome-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.auth-page--platform .auth-welcome-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.auth-welcome-icon svg,
.auth-welcome-icon i {
    width: 40px;
    height: 40px;
    color: var(--auth-bg);
}

/* ============================================
   FOOTER
   ============================================ */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--auth-border);
}

.auth-footer-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.auth-footer-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--auth-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.auth-footer-feature svg,
.auth-footer-feature i {
    width: 14px;
    height: 14px;
}

.auth-page--coach .auth-footer-feature svg,
.auth-page--coach .auth-footer-feature i { color: #22c55e; }

.auth-page--referee .auth-footer-feature svg,
.auth-page--referee .auth-footer-feature i { color: #f59e0b; }

.auth-page--platform .auth-footer-feature svg,
.auth-page--platform .auth-footer-feature i { color: #8b5cf6; }

.auth-footer-text {
    color: var(--auth-text-muted);
    font-size: 0.8rem;
    margin-top: 16px;
}

.auth-footer-text a {
    text-decoration: none;
    font-weight: 600;
}

.auth-page--coach .auth-footer-text a { color: #22c55e; }
.auth-page--referee .auth-footer-text a { color: #f59e0b; }
.auth-page--platform .auth-footer-text a { color: #8b5cf6; }

.auth-footer-text a:hover {
    text-decoration: underline;
}

.auth-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--auth-text-muted);
    text-decoration: none;
    transition: color var(--auth-transition);
}

.auth-link:hover {
    color: var(--auth-text-primary);
}

/* ============================================
   SCREEN TRANSITIONS
   ============================================ */
.auth-screen {
    display: none;
}

.auth-screen.active {
    display: block;
    animation: authFadeIn 0.3s ease;
}

/* ============================================
   PRODUCT NAVBAR
   ============================================ */
.auth-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(10, 13, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--auth-border);
}

.auth-navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.auth-navbar-logo img {
    height: 28px;
    width: auto;
}

.auth-navbar-logo span {
    font-family: var(--auth-font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-navbar-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--auth-font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--auth-text-muted);
    transition: all var(--auth-transition);
}

.auth-navbar-link:hover {
    color: var(--auth-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Product-specific link colors */
.auth-navbar-link[data-product="coach"] { --link-color: #22c55e; }
.auth-navbar-link[data-product="referee"] { --link-color: #f59e0b; }
.auth-navbar-link[data-product="platform"] { --link-color: #a855f7; }
.auth-navbar-link[data-product="parent"] { --link-color: #3b82f6; }

.auth-navbar-link.active {
    color: var(--link-color);
    background: rgba(255, 255, 255, 0.05);
}

.auth-navbar-link:hover {
    color: var(--link-color);
}

/* Add padding to body when navbar is present */
.auth-page.has-navbar {
    padding-top: 80px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .auth-navbar {
        padding: 10px 16px;
    }

    .auth-navbar-logo span {
        display: none;
    }

    .auth-navbar-link {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .auth-page.has-navbar {
        padding-top: 70px;
    }

    .auth-page {
        align-items: flex-start;
        padding: 16px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-logo-section {
        margin-bottom: 20px;
    }

    .auth-logo {
        height: 40px;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .auth-tab {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .auth-option {
        padding: 14px 16px;
    }

    .auth-option-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .auth-pin-display {
        gap: 8px;
    }

    .auth-pin-digit {
        width: 38px;
        height: 46px;
        font-size: 1.3rem;
    }

    .auth-pin-keypad {
        gap: 8px;
    }

    .auth-pin-key {
        height: 50px;
        font-size: 1.2rem;
    }

    .auth-footer-features {
        gap: 12px;
    }
}
