/* ==========================================================================
   Legends Boost — Auth Stylesheet (Premium SaaS Redesign)
   ========================================================================== */

:root {
    --lb-auth-bg:        #0a0b10;
    --lb-auth-panel:     #0f1117;
    --lb-auth-card:      #14161f;
    --lb-auth-border:    rgba(255, 255, 255, 0.08);
    --lb-auth-border-strong: rgba(255, 255, 255, 0.14);
    --lb-auth-text:      #f4f5f8;
    --lb-auth-muted:     #9ba1ad;
    --lb-auth-faint:     #6b7280;
    --lb-auth-accent:    #6366f1;
    --lb-auth-accent-hover: #7c7ef5;
    --lb-auth-radius:    10px;
    --lb-auth-ease:      cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hide theme chrome on auth pages */
body.lb-is-auth header,
body.lb-is-auth footer,
body.lb-is-auth main { display: none !important; }

body.lb-is-auth {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--lb-auth-bg) !important;
    color: var(--lb-auth-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.lb-is-auth * { box-sizing: border-box; }

.lb-auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* ---------- Left (form) panel ---------- */
.lb-auth-left {
    background: var(--lb-auth-panel);
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lb-auth-content {
    width: 100%;
    max-width: 400px;
}

.lb-auth-heading {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--lb-auth-text);
    margin: 0 0 0.5rem;
    line-height: 1.15;
}

.lb-auth-subheading {
    font-size: 0.9375rem;
    color: var(--lb-auth-muted);
    margin: 0 0 2rem;
    line-height: 1.5;
}

.lb-auth-link {
    color: var(--lb-auth-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s var(--lb-auth-ease);
}
.lb-auth-link:hover { color: var(--lb-auth-accent-hover); text-decoration: none; }

/* ---------- Buttons ---------- */
.lb-auth-button {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--lb-auth-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    transition: background 0.15s var(--lb-auth-ease), border-color 0.15s var(--lb-auth-ease), transform 0.15s var(--lb-auth-ease);
    font-family: inherit;
}
.lb-auth-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.lb-auth-button-google {
    background: var(--lb-auth-card);
    color: var(--lb-auth-text);
    border-color: var(--lb-auth-border-strong);
}
.lb-auth-button-google:hover { background: #1a1d29; }

.lb-auth-button-discord {
    background: #5865F2;
    color: #ffffff;
}
.lb-auth-button-discord:hover { background: #4752C4; }

.lb-auth-button-primary {
    background: var(--lb-auth-accent);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.lb-auth-button-primary:hover { background: var(--lb-auth-accent-hover); transform: translateY(-1px); }
.lb-auth-button-primary:active { transform: translateY(0); }

/* ---------- Divider ---------- */
.lb-auth-divider {
    position: relative;
    text-align: center;
    margin: 1.75rem 0;
}
.lb-auth-divider span {
    background: var(--lb-auth-panel);
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lb-auth-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
}
.lb-auth-divider::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 100%; height: 1px;
    background: var(--lb-auth-border);
}

/* ---------- Inputs ---------- */
.lb-auth-form-group { margin-bottom: 1rem; }

.lb-auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--lb-auth-text);
    background: var(--lb-auth-card);
    border: 1px solid var(--lb-auth-border-strong);
    border-radius: var(--lb-auth-radius);
    box-sizing: border-box;
    transition: border-color 0.15s var(--lb-auth-ease), box-shadow 0.15s var(--lb-auth-ease), background 0.15s var(--lb-auth-ease);
    font-family: inherit;
}
.lb-auth-input::placeholder { color: var(--lb-auth-faint); }
.lb-auth-input:hover { border-color: rgba(255, 255, 255, 0.2); }
.lb-auth-input:focus {
    outline: none;
    border-color: var(--lb-auth-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
    background: #181b25;
}

/* ---------- Flex row (remember me + forgot) ---------- */
.lb-auth-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
}

.lb-auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--lb-auth-muted);
    cursor: pointer;
    user-select: none;
}
.lb-auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--lb-auth-accent);
    cursor: pointer;
}

/* ---------- Right (graphic) panel ---------- */
.lb-auth-right {
    background:
        radial-gradient(600px 400px at 20% 20%, rgba(99,102,241,0.18), transparent 60%),
        radial-gradient(700px 500px at 80% 80%, rgba(168,85,247,0.16), transparent 60%),
        linear-gradient(135deg, #0a0b10 0%, #14161f 100%);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lb-auth-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    opacity: 0.6;
    pointer-events: none;
}

.lb-auth-graphic {
    position: relative;
    z-index: 1;
    text-align: center;
}

.lb-auth-crown {
    width: 280px;
    height: 280px;
    filter: drop-shadow(0 30px 60px rgba(99, 102, 241, 0.45));
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .lb-auth-container { grid-template-columns: 1fr; }
    .lb-auth-right { display: none; }
    .lb-auth-left { padding: 2.5rem 1.5rem; }
    .lb-auth-heading { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .lb-auth-left { padding: 2rem 1.25rem; }
    .lb-auth-heading { font-size: 1.5rem; }
    .lb-auth-subheading { font-size: 0.875rem; margin-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    body.lb-is-auth *,
    body.lb-is-auth *::before,
    body.lb-is-auth *::after { transition: none !important; animation: none !important; }
}
