/* ============================================================
   Auth Shared Styles — Unified visual system for all auth pages
   ============================================================ */

/* Background atmosphere */
.auth-atmosphere {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 166, 156, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(46, 134, 193, 0.04) 0%, transparent 50%),
        var(--theme-bg-primary, #f7f9fc);
    min-height: 100vh;
}

[data-bs-theme="dark"] .auth-atmosphere {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 196, 184, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(46, 134, 193, 0.06) 0%, transparent 50%),
        var(--theme-bg-primary, #121212);
}

/* Auth logo */
.auth-logo {
    max-width: 120px;
}

/* Auth heading typography — Karla 800 */
.auth-heading {
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--theme-text-primary, #212529);
}

/* Auth card */
.auth-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: var(--theme-surface-1, #ffffff);
}

[data-bs-theme="dark"] .auth-card {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    background: var(--surface-1, rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Auth card body */
.auth-card .card-body {
    padding: 2rem;
}

@media (min-width: 768px) {
    .auth-card .card-body {
        padding: 2.5rem;
    }
}

/* Form input styling */
.auth-card .form-control,
.auth-card .form-select {
    border-radius: 8px;
    border: 1px solid var(--theme-border-color, #dee2e6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--theme-primary, #00a69c);
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 156, 0.15);
}

[data-bs-theme="dark"] .auth-card .form-control,
[data-bs-theme="dark"] .auth-card .form-select {
    background-color: var(--surface-2, rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--theme-text-primary, #e0e0e0);
}

[data-bs-theme="dark"] .auth-card .form-control:focus,
[data-bs-theme="dark"] .auth-card .form-select:focus {
    border-color: var(--theme-primary, #00c4b8);
    box-shadow: 0 0 0 0.2rem rgba(0, 196, 184, 0.2);
}

/* Section heading inside card */
.auth-section-heading {
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Primary CTA button */
.auth-btn-primary {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    background: linear-gradient(135deg, var(--theme-primary, #00a69c) 0%, #2E86C1 100%);
    color: #ffffff;
    transition: all 0.2s ease;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #00a69c) 85%, #000) 0%, color-mix(in srgb, #2E86C1 85%, #000) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 166, 156, 0.3);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

/* Focus indicators (WCAG 2.1 AA) */
.auth-btn-primary:focus-visible,
.auth-btn-social:focus-visible,
.auth-btn-secondary:focus-visible {
    outline: 2px solid var(--theme-primary, #00a69c);
    outline-offset: 2px;
}

[data-bs-theme="dark"] .auth-btn-primary:focus-visible,
[data-bs-theme="dark"] .auth-btn-social:focus-visible,
[data-bs-theme="dark"] .auth-btn-secondary:focus-visible {
    outline-color: var(--theme-primary, #00c4b8);
}

/* Social/alternative login button */
.auth-btn-social {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid var(--theme-border-color, #dee2e6);
    background: var(--theme-surface-1, #ffffff);
    color: var(--theme-text-primary, #212529);
    transition: all 0.2s ease;
}

.auth-btn-social:hover {
    background: var(--theme-surface-2, #f8f9fa);
    border-color: var(--theme-text-tertiary, #adb5bd);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .auth-btn-social {
    background: var(--surface-2, rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--theme-text-primary, #e0e0e0);
}

[data-bs-theme="dark"] .auth-btn-social:hover {
    background: var(--surface-3, rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.2);
}

/* Secondary action button (muted) */
.auth-btn-secondary {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    border: 1px dashed var(--theme-border-color, #dee2e6);
    background: transparent;
    color: var(--theme-text-secondary, #6c757d);
    transition: all 0.2s ease;
}

.auth-btn-secondary:hover {
    border-style: solid;
    border-color: var(--theme-primary, #00a69c);
    color: var(--theme-primary, #00a69c);
    background: rgba(0, 166, 156, 0.04);
}

[data-bs-theme="dark"] .auth-btn-secondary:hover {
    background: rgba(0, 196, 184, 0.08);
    color: var(--theme-primary, #00c4b8);
    border-color: var(--theme-primary, #00c4b8);
}

/* Divider — "or continue with" */
.auth-divider {
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider hr {
    border: none;
    border-top: 1px solid var(--theme-border-color, #dee2e6);
}

.auth-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 0.75rem;
    background: var(--theme-surface-1, #ffffff);
    color: var(--theme-text-tertiary, #adb5bd);
    font-size: 0.8125rem;
    white-space: nowrap;
}

[data-bs-theme="dark"] .auth-divider span {
    background: inherit;
}

/* PDGA info box */
.auth-pdga-info {
    border-radius: 12px;
    padding: 1rem;
    background: rgba(0, 166, 156, 0.06);
    border: 1px solid rgba(0, 166, 156, 0.12);
}

[data-bs-theme="dark"] .auth-pdga-info {
    background: rgba(0, 196, 184, 0.08);
    border-color: rgba(0, 196, 184, 0.15);
}

/* "What is FL!PT?" badge */
.auth-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: rgba(0, 166, 156, 0.08);
    color: var(--theme-primary, #00a69c);
    border: 1px solid rgba(0, 166, 156, 0.2);
    transition: all 0.2s ease;
}

.auth-badge:hover {
    background: rgba(0, 166, 156, 0.14);
    color: var(--theme-primary, #00a69c);
    text-decoration: none;
}

[data-bs-theme="dark"] .auth-badge {
    background: rgba(0, 196, 184, 0.1);
    color: var(--theme-primary, #00c4b8);
    border-color: rgba(0, 196, 184, 0.25);
}

[data-bs-theme="dark"] .auth-badge:hover {
    background: rgba(0, 196, 184, 0.18);
}

/* Avatar placeholder (PDGA user card without photo) */
.auth-avatar-placeholder {
    background: rgba(0, 166, 156, 0.08);
}

.auth-avatar-placeholder span {
    color: var(--theme-primary, #00a69c);
}

[data-bs-theme="dark"] .auth-avatar-placeholder {
    background: rgba(0, 196, 184, 0.12);
}

[data-bs-theme="dark"] .auth-avatar-placeholder span {
    color: var(--theme-primary, #00c4b8);
}

/* Forgot password link */
.auth-card .forgot-password-link {
    font-size: 0.875rem;
    color: var(--theme-primary, #00a69c);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-card .forgot-password-link:hover {
    color: #009688;
}

/* Validation error spacing */
.auth-card .field-validation-error {
    display: block;
    margin-top: 0.25rem;
}

/* Back/navigation link */
.auth-back-link {
    color: var(--theme-primary, #00a69c);
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: color-mix(in srgb, var(--theme-primary, #00a69c) 85%, #000);
}

/* ─── Hero image header ─── */
.auth-hero {
    border-radius: 12px;
    overflow: hidden;
}

.auth-hero-img {
    width: 100%;
    height: auto;
    display: block;
}
