/**
 * JediTemplate Platform CSS v3
 * 
 * Split-screen auth gate aligned with JediOnTheFly visual identity.
 * Left: brand canvas with network animation. Right: auth forms / welcome.
 * Zero framework dependencies.
 *
 * VISUAL IDENTITY: Dark Slate substrate, Plasma Magenta accent (Rule of Three),
 *   Clash Display headlines, Satoshi body, JetBrains Mono labels.
 * 
 * SCOPE: Auth gate (login/register/password/free-access), alerts, forms, tabs, brand.
 * OUT OF SCOPE: File management UI, Admin panel, Game UIs.
 * 
 * THEMING: Override CSS custom properties per deployment/client.
 * CLASS CONTRACT: BEM-style `.auth-{block}__{element}--{modifier}`
 *   — class names are referenced by PHP and must not change without updating callers.
 * 
 * @version 3.0.0
 * @since 2025-02-15
 */

/* ==========================================================================
   1. FONT IMPORTS
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600&f[]=satoshi@400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   2. CUSTOM PROPERTIES (Theming API)
   ========================================================================== */

:root {
    /* ── Brand palette ── */
    --auth-magenta: #EC4899;
    --auth-magenta-glow: rgba(236, 72, 153, 0.4);
    --auth-magenta-glow-hover: rgba(236, 72, 153, 0.55);
    --auth-magenta-subtle: rgba(236, 72, 153, 0.1);
    --auth-magenta-border: rgba(236, 72, 153, 0.3);

    --auth-dark-slate: #0F172A;
    --auth-midnight-plum: #1A1520;
    --auth-slate-800: #1E293B;
    --auth-slate-700: #334155;
    --auth-slate-600: #475569;
    --auth-slate-500: #64748B;
    --auth-slate-400: #94A3B8;

    /* ── Card ── */
    --auth-card-bg: rgba(30, 41, 59, 0.6);
    --auth-card-border: rgba(51, 65, 85, 0.5);
    --auth-card-blur: 24px;
    --auth-card-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    --auth-card-radius: 16px;
    --auth-card-padding: 2.5rem;

    /* ── Typography ── */
    --auth-font-headline: 'Clash Display', system-ui, sans-serif;
    --auth-font-body: 'Satoshi', system-ui, sans-serif;
    --auth-font-mono: 'JetBrains Mono', monospace;

    --auth-color-text: #F1F5F9;
    --auth-color-text-muted: #94A3B8;
    --auth-color-text-subtle: #64748B;

    /* ── Inputs ── */
    --auth-input-bg: rgba(15, 23, 42, 0.5);
    --auth-input-bg-focus: rgba(15, 23, 42, 0.8);
    --auth-input-border: var(--auth-slate-700);
    --auth-input-border-focus: var(--auth-magenta);
    --auth-input-radius: 8px;
    --auth-input-padding: 14px 16px;

    /* ── Alerts ── */
    --auth-alert-radius: 8px;
    --auth-alert-error-bg: rgba(239, 68, 68, 0.12);
    --auth-alert-error-border: rgba(239, 68, 68, 0.3);
    --auth-alert-success-bg: rgba(34, 197, 94, 0.12);
    --auth-alert-success-border: rgba(34, 197, 94, 0.3);
    --auth-alert-info-bg: rgba(59, 130, 246, 0.12);
    --auth-alert-info-border: rgba(59, 130, 246, 0.3);

    /* ── Spacing ── */
    --auth-space-xs: 0.25rem;
    --auth-space-sm: 0.5rem;
    --auth-space-md: 1rem;
    --auth-space-lg: 1.5rem;
    --auth-space-xl: 2rem;
    --auth-space-2xl: 3rem;

    /* ── Dot grid ── */
    --auth-dot-color: var(--auth-slate-500);
    --auth-dot-size: 1px;
    --auth-dot-spacing: 28px;
    --auth-dot-opacity: 0.2;
}

/* ==========================================================================
   3. SPLIT LAYOUT
   ========================================================================== */

.auth-split {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--auth-dark-slate);
    font-family: var(--auth-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--auth-color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Left Panel: Brand Canvas ── */
.auth-split__brand {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem;
}

/* Dot grid on brand panel */
.auth-split__brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        var(--auth-dot-color) var(--auth-dot-size),
        transparent var(--auth-dot-size)
    );
    background-size: var(--auth-dot-spacing) var(--auth-dot-spacing);
    opacity: var(--auth-dot-opacity);
    pointer-events: none;
}

/* ── Right Panel: Auth Forms ── */
.auth-split__forms {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(26, 21, 32, 0.95) 100%
    );
    border-left: 1px solid var(--auth-slate-700);
    overflow-y: auto;
}

.auth-split__forms-inner {
    width: 100%;
    max-width: 400px;
    margin: auto 0;
}

/* ==========================================================================
   4. BRAND CONTENT (left panel)
   ========================================================================== */

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand-content__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--auth-font-headline);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

.brand-content__title {
    font-family: var(--auth-font-headline);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.brand-content__subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--auth-color-text-muted);
    max-width: 380px;
    margin: 0 auto 2.5rem;
}

/* The Loop indicator — Surface → Align → Move */
.brand-content__loop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--auth-font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--auth-color-text-subtle);
}

.brand-content__loop-step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-content__loop-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--auth-slate-500);
}

.brand-content__loop-dot--active {
    background: var(--auth-magenta);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}

.brand-content__loop-arrow {
    color: var(--auth-slate-600);
}

/* ==========================================================================
   5. NETWORK ANIMATION (SVG on left panel)
   ========================================================================== */

.network-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.network-canvas svg {
    width: 100%;
    height: 100%;
}

/* Dormant nodes — slate, low opacity */
.node-dormant {
    fill: var(--auth-slate-500);
    opacity: 0.35;
}

/* Active nodes — magenta with glow halo */
.node-active {
    fill: var(--auth-magenta);
    opacity: 0.7;
}

.node-glow {
    fill: var(--auth-magenta);
    opacity: 0;
    animation: node-pulse 4s ease-in-out infinite;
}

@keyframes node-pulse {
    0%, 100% { opacity: 0; r: 8; }
    50% { opacity: 0.12; r: 16; }
}

/* Dormant edges */
.edge-dormant {
    stroke: var(--auth-slate-600);
    stroke-width: 0.5;
    opacity: 0.15;
}

/* Active edge flashes */
.edge-active {
    stroke: var(--auth-magenta);
    stroke-width: 0.8;
    opacity: 0;
    animation: edge-awaken 6s ease-in-out infinite;
}

@keyframes edge-awaken {
    0%, 100% { opacity: 0; }
    40%, 60% { opacity: 0.3; }
}

/* Traveling particles along edges */
.particle {
    fill: var(--auth-magenta);
    opacity: 0;
    animation: particle-travel 5s linear infinite;
}

@keyframes particle-travel {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Signal ripples from active nodes */
.signal-ring {
    fill: none;
    stroke: var(--auth-magenta);
    stroke-width: 0.5;
    opacity: 0;
    animation: signal-ripple 5s ease-out infinite;
}

@keyframes signal-ripple {
    0% { r: 3; opacity: 0.4; stroke-width: 1; }
    100% { r: 30; opacity: 0; stroke-width: 0.2; }
}

/* ==========================================================================
   6. TYPOGRAPHY
   ========================================================================== */

.auth-title {
    font-family: var(--auth-font-headline);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--auth-color-text);
    text-align: center;
    margin: 0 0 var(--auth-space-sm);
}

.auth-title--lg {
    font-size: 36px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-family: var(--auth-font-body);
    font-size: 15px;
    color: var(--auth-color-text-muted);
    text-align: center;
    margin: 0 0 var(--auth-space-2xl);
    line-height: 1.6;
}

/* ==========================================================================
   7. FORMS
   ========================================================================== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--auth-space-lg);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: var(--auth-space-xs);
    text-align: left;
}

.auth-field--action {
    margin-top: var(--auth-space-lg);
}

.auth-label {
    font-family: var(--auth-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-color-text-muted);
    padding: 0 0 var(--auth-space-xs);
}

.auth-input {
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-input-radius);
    padding: var(--auth-input-padding);
    color: var(--auth-color-text);
    font-family: var(--auth-font-body);
    font-size: 15px;
    font-weight: 400;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    background: var(--auth-input-bg-focus);
    border-color: var(--auth-input-border-focus);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

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

/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--auth-space-sm);
    width: 100%;
    padding: 14px 24px;
    background: var(--auth-magenta);
    border: none;
    border-radius: var(--auth-input-radius);
    color: #ffffff;
    font-family: var(--auth-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 24px var(--auth-magenta-glow);
    transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.auth-button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 32px var(--auth-magenta-glow-hover);
}

.auth-button:active {
    transform: scale(0.98);
}

.auth-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary / ghost button */
.auth-button--secondary {
    background: transparent;
    border: 1px solid var(--auth-slate-700);
    color: var(--auth-color-text-muted);
    box-shadow: none;
    font-weight: 500;
}

.auth-button--secondary:hover {
    background: var(--auth-slate-800);
    border-color: var(--auth-slate-600);
    color: var(--auth-color-text);
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   9. TABS
   ========================================================================== */

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: var(--auth-space-sm);
    margin-bottom: var(--auth-space-xl);
    border-bottom: 1px solid var(--auth-slate-700);
    padding-bottom: 0;
}

.auth-tab {
    background: transparent;
    color: var(--auth-color-text-subtle);
    border: none;
    border-bottom: 2px solid transparent;
    padding: var(--auth-space-sm) var(--auth-space-lg);
    margin-bottom: -1px;
    font-family: var(--auth-font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.auth-tab--active {
    color: var(--auth-color-text);
    border-bottom-color: var(--auth-magenta);
}

/* ==========================================================================
   10. ALERTS
   ========================================================================== */

.auth-alert {
    display: flex;
    align-items: center;
    gap: var(--auth-space-sm);
    padding: 12px var(--auth-space-md);
    border-radius: var(--auth-alert-radius);
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--auth-slate-700);
    color: var(--auth-color-text);
    font-size: 14px;
    margin-bottom: var(--auth-space-lg);
    text-align: left;
}

.auth-alert--error {
    background: var(--auth-alert-error-bg);
    border-color: var(--auth-alert-error-border);
}

.auth-alert--success {
    background: var(--auth-alert-success-bg);
    border-color: var(--auth-alert-success-border);
}

.auth-alert--info {
    background: var(--auth-alert-info-bg);
    border-color: var(--auth-alert-info-border);
}

.auth-alert__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

/* ==========================================================================
   11. BRAND & LOGO
   ========================================================================== */

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: var(--auth-space-xl);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--auth-font-headline);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.auth-logo__icon {
    flex-shrink: 0;
}

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

.auth-logo__text--accent {
    color: var(--auth-magenta);
}

/* ==========================================================================
   12. EYEBROW
   ========================================================================== */

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--auth-magenta-subtle);
    border: 1px solid var(--auth-magenta-border);
    border-radius: 9999px;
    color: var(--auth-magenta);
    font-family: var(--auth-font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--auth-space-lg);
}

/* ==========================================================================
   13. WELCOME SCREEN (free access mode)
   ========================================================================== */

.welcome-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--auth-space-xl);
    border-radius: 14px;
    background: var(--auth-magenta-subtle);
    border: 1px solid var(--auth-magenta-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.welcome-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--auth-color-text-muted);
    text-align: center;
    margin-bottom: var(--auth-space-2xl);
}

.welcome-footer {
    text-align: center;
    font-size: 13px;
    color: var(--auth-color-text-subtle);
    margin-top: var(--auth-space-md);
}

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

/* ==========================================================================
   14. DIVIDER
   ========================================================================== */

.auth-divider {
    border: none;
    border-top: 1px solid var(--auth-slate-700);
    margin: var(--auth-space-sm) 0;
}

/* ==========================================================================
   15. UTILITIES
   ========================================================================== */

[x-cloak] {
    display: none !important;
}

.auth-hidden {
    display: none;
}

.auth-text-center {
    text-align: center;
}

/* ==========================================================================
   16. STAGGER ENTRANCE ANIMATIONS
   ========================================================================== */

.auth-split__forms-inner > * {
    animation: auth-fadeInUp 0.5s ease-out both;
}

.auth-split__forms-inner > *:nth-child(1) { animation-delay: 0.1s; }
.auth-split__forms-inner > *:nth-child(2) { animation-delay: 0.2s; }
.auth-split__forms-inner > *:nth-child(3) { animation-delay: 0.3s; }
.auth-split__forms-inner > *:nth-child(4) { animation-delay: 0.4s; }

.brand-content > * {
    animation: auth-fadeInUp 0.6s ease-out both;
}

.brand-content > *:nth-child(1) { animation-delay: 0.2s; }
.brand-content > *:nth-child(2) { animation-delay: 0.4s; }
.brand-content > *:nth-child(3) { animation-delay: 0.6s; }
.brand-content > *:nth-child(4) { animation-delay: 0.8s; }

@keyframes auth-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   17. RESPONSIVE — stack on mobile
   ========================================================================== */

@media (max-width: 840px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-split__brand {
        min-height: 280px;
        flex: 0 0 auto;
        padding: 2rem;
    }

    .brand-content__title {
        font-size: 28px;
    }

    .brand-content__subtitle {
        font-size: 15px;
        margin-bottom: 1.5rem;
    }

    .auth-split__forms {
        border-left: none;
        border-top: 1px solid var(--auth-slate-700);
        flex: 1;
        padding: 2rem;
    }

    .auth-title--lg {
        font-size: 28px;
    }

    .auth-tab {
        font-size: 14px;
        padding: var(--auth-space-sm) var(--auth-space-md);
    }
}

@media (max-width: 480px) {
    :root {
        --auth-card-padding: 1.75rem;
        --auth-dot-spacing: 24px;
    }

    .auth-split__brand {
        min-height: 220px;
        padding: 1.5rem;
    }

    .auth-split__forms {
        padding: 1.5rem;
    }

    .brand-content__title {
        font-size: 24px;
    }

    .brand-content__loop {
        gap: 0.5rem;
        font-size: 10px;
    }
}

/* ==========================================================================
   18. TEAM JOIN MODE COMPONENTS (Auth Mode 4)
   Added 2026-02-16 for Team Join feature
   ========================================================================== */

/* Progress Indicator */
.team-join-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 13px;
    color: var(--auth-text-secondary);
}

.team-join-progress__step {
    transition: all var(--auth-transition);
}

.team-join-progress__step--active {
    color: var(--auth-accent);
    font-weight: 600;
}

.team-join-progress__arrow {
    opacity: 0.4;
}

/* Team Cards */
.team-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
}

/* Custom scrollbar for team cards */
.team-cards::-webkit-scrollbar {
    width: 6px;
}

.team-cards::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 3px;
}

.team-cards::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.4);
    border-radius: 3px;
}

.team-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 72, 153, 0.6);
}

.team-card {
    background: var(--auth-bg-elevated);
    border: 2px solid var(--auth-border);
    border-radius: var(--auth-radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--auth-transition);
}

.team-card:hover {
    border-color: var(--auth-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
}

.team-card--selected {
    border-color: var(--auth-accent);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(236, 72, 153, 0.02));
}

.team-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.team-card__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--auth-text-primary);
    margin: 0;
}

.team-card__badge {
    background: var(--auth-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.team-card__description {
    color: var(--auth-text-secondary);
    font-size: 14px;
    margin: 0 0 1rem 0;
}

.team-card__capacity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-card__capacity-bar {
    height: 6px;
    background: var(--auth-border);
    border-radius: 3px;
    overflow: hidden;
}

.team-card__capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--auth-accent), #f472b6);
    border-radius: 3px;
    transition: width var(--auth-transition);
}

.team-card__capacity-text {
    font-size: 12px;
    color: var(--auth-text-secondary);
}

/* Participants List */
.participants-list {
    margin: 1.5rem 0;
}

.participants-list__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text-primary);
    margin: 0 0 1rem 0;
}

.participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--auth-bg-elevated);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all var(--auth-transition);
}

.participant-row:hover {
    border-color: var(--auth-accent);
}

.participant-row--readonly {
    background: transparent;
    cursor: default;
}

.participant-row--readonly:hover {
    border-color: var(--auth-border);
}

.participant-row__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.participant-row__name {
    font-size: 15px;
    font-weight: 500;
    color: var(--auth-text-primary);
}

.participant-row__login {
    font-size: 13px;
    color: var(--auth-text-secondary);
    font-family: 'Courier New', monospace;
}

.participant-row__remove {
    background: none;
    border: none;
    color: var(--auth-text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all var(--auth-transition);
}

.participant-row__remove:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.participant-row__remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Review Summary */
.review-summary {
    background: var(--auth-bg-elevated);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-lg);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.review-summary__item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--auth-border);
}

.review-summary__item:last-child {
    border-bottom: none;
}

.review-summary__label {
    font-size: 14px;
    color: var(--auth-text-secondary);
}

.review-summary__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-text-primary);
}

/* Button Variants */
.auth-button--secondary {
    background: var(--auth-bg-elevated);
    color: var(--auth-accent);
    border: 2px solid var(--auth-accent);
}

.auth-button--secondary:hover:not(:disabled) {
    background: var(--auth-accent);
    color: white;
}

.auth-button--ghost {
    background: transparent;
    color: var(--auth-text-secondary);
    border: 1px solid var(--auth-border);
}

.auth-button--ghost:hover:not(:disabled) {
    background: var(--auth-bg-elevated);
    border-color: var(--auth-accent);
    color: var(--auth-accent);
}

/* Team Join Responsive Adjustments */
@media (max-width: 640px) {
    .team-join-progress {
        font-size: 11px;
        gap: 0.5rem;
    }

    .team-card {
        padding: 1rem;
    }

    .team-card__name {
        font-size: 16px;
    }

    .participant-row {
        padding: 0.875rem;
    }

    .auth-field--action {
        flex-direction: column;
        gap: 0.75rem;
    }

    .auth-field--action button {
        width: 100%;
    }
}

/* ==========================================================================
   19. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
