.member-auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--fe-hero-start) 0%, var(--fe-hero-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    --primary: var(--fe-primary);
    --primary-dark: var(--fe-primary-dark);
}

.member-auth-card {
    background: var(--fe-surface);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.member-auth-card--wide {
    max-width: 520px;
}

.member-auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.member-auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.member-auth-brand-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.member-auth-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fe-navbar-brand, var(--fe-primary));
    line-height: 1.2;
    white-space: nowrap;
}

.member-auth-brand h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--fe-primary);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.member-auth-brand p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--fe-text-muted);
    line-height: 1.45;
}

.member-auth-form .form-label {
    margin-bottom: 0.35rem;
    color: var(--fe-text);
}

.member-auth-form .form-control {
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    border-color: var(--fe-border, #dee2e6);
    background: var(--fe-surface);
    color: var(--fe-text);
}

.member-auth-form .form-control:focus {
    border-color: var(--fe-primary);
    box-shadow: 0 0 0 0.2rem var(--fe-shadow-primary-soft);
    background: var(--fe-surface);
    color: var(--fe-text);
}

.member-auth-form .form-text {
    font-size: 0.7rem;
    margin-top: 0.15rem;
    line-height: 1.35;
    color: var(--fe-text-muted);
}

.member-auth-field {
    margin-bottom: 0.85rem;
}

.member-auth-form .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0;
}

.member-auth-form .row > [class*="col-"] {
    margin-bottom: 0.85rem;
}

.member-auth-submit {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.member-auth-submit .btn {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-size: 0.9rem;
}

.member-auth-submit .btn-primary-admin:hover,
.member-auth-submit .btn-primary-admin:focus {
    box-shadow: 0 4px 12px var(--fe-shadow-primary);
}

.member-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--fe-text-muted);
    font-size: 0.75rem;
    margin: 1rem 0;
}

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

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fe-surface);
    border: 1px solid var(--fe-border, #dadce0);
    color: var(--fe-text);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    width: 100%;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover {
    background: var(--fe-primary-soft-bg-hover);
    border-color: var(--fe-primary-border-soft);
    color: var(--fe-text);
    box-shadow: 0 1px 2px var(--fe-shadow-primary-soft);
}

.member-auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--fe-border, #f1f5f9);
}

.member-auth-switch p {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--fe-text-muted);
}

.member-auth-back {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--fe-text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
}

.member-auth-back:hover {
    color: var(--fe-primary);
}

/* Dark theme auth */
body.fe-theme-dark-mode .member-auth-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.fe-theme-dark-mode .member-auth-form .form-control {
    background: var(--fe-surface-muted);
    border-color: var(--fe-border, #334155);
}

body.fe-theme-dark-mode .member-auth-form .form-control:focus {
    background: var(--fe-surface-muted);
}

body.fe-theme-dark-mode .member-auth-form .form-check-label {
    color: var(--fe-text-muted);
}

body.fe-theme-dark-mode .btn-google {
    background: var(--fe-surface-muted);
    border-color: var(--fe-border, #334155);
}

body.fe-theme-dark-mode .btn-google:hover {
    background: var(--fe-primary-soft-bg-hover);
}

@media (max-width: 575.98px) {
    .member-auth-page {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .member-auth-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .member-auth-brand {
        margin-bottom: 1.25rem;
    }

    .member-auth-card--wide {
        max-width: 100%;
    }
}
