/* Royal blue auth pages (Sign In / Create Account) */

body.auth-page {
    --auth-royal-deep: #051230;
    --auth-royal-base: #0a2463;
    --auth-royal-mid: #123a7a;
    --auth-primary: #4169e1;
    --auth-primary-light: #7eb0ff;
    --auth-text: #f0f4ff;
    --auth-muted: #94a8d4;
    --auth-border: rgba(126, 176, 255, 0.2);
    --auth-card-bg: rgba(10, 36, 99, 0.55);
    background: #071a42;
    color: var(--auth-text);
}

body.auth-page .auth-main-full {
    padding: 0;
    max-width: none;
    min-height: calc(100vh - 72px);
}

.auth-page-wrap {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
    overflow: hidden;
}

.auth-page-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 20% 30%, rgba(65, 105, 225, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 70%, rgba(30, 77, 158, 0.3) 0%, transparent 55%),
        linear-gradient(160deg, var(--auth-royal-deep) 0%, var(--auth-royal-base) 50%, #0c2d6e 100%);
    pointer-events: none;
}

.auth-page-bg::before,
.auth-page-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.auth-page-bg::before {
    width: 380px;
    height: 380px;
    top: -60px;
    right: 8%;
    background: rgba(65, 105, 225, 0.18);
}

.auth-page-bg::after {
    width: 300px;
    height: 300px;
    bottom: -40px;
    left: 6%;
    background: rgba(30, 77, 158, 0.22);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.auth-shell--login {
    max-width: 920px;
}

.auth-shell--register {
    max-width: 1040px;
}

.auth-brand-panel {
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(145deg, rgba(65, 105, 225, 0.25) 0%, rgba(5, 18, 48, 0.6) 100%);
    border-right: 1px solid var(--auth-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--auth-text);
    text-decoration: none;
}

.auth-brand-logo i {
    color: var(--auth-primary-light);
    font-size: 1.25rem;
}

.auth-brand-logo:hover {
    color: #fff;
}

.auth-brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--auth-primary-light);
}

.auth-brand-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--auth-primary-light);
    box-shadow: 0 0 8px rgba(126, 176, 255, 0.7);
}

.auth-brand-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--auth-text);
}

.auth-brand-title span {
    display: block;
    background: linear-gradient(135deg, #a8c8ff 0%, var(--auth-primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-brand-text {
    color: var(--auth-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 0.98rem;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-brand-features i {
    color: var(--auth-primary-light);
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

.auth-form-panel {
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--auth-card-bg);
    backdrop-filter: blur(16px);
}

.auth-form-header {
    margin-bottom: 1.75rem;
}

.auth-form-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 105, 225, 0.2);
    color: var(--auth-primary-light);
    border-radius: 14px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--auth-border);
}

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--auth-text);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.auth-form-subtitle {
    color: var(--auth-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.auth-form .form-label {
    color: var(--auth-muted);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.auth-form label.form-label:has(+ input[data-val-required])::after,
.auth-form label.form-label:has(+ input[required])::after,
.auth-form label.form-label:has(+ .auth-password-wrap input[data-val-required])::after,
.auth-form label.form-label:has(+ .auth-password-wrap input[required])::after {
    content: " *";
    color: #ef4444;
    font-weight: 700;
}

.auth-form .form-control,
.auth-form .form-select {
    background: rgba(5, 18, 48, 0.5);
    border: 1px solid var(--auth-border);
    color: var(--auth-text);
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-control::placeholder {
    color: rgba(148, 168, 212, 0.55);
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    background: rgba(5, 18, 48, 0.65);
    border-color: var(--auth-primary-light);
    color: var(--auth-text);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.2);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .form-control {
    padding-right: 2.85rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.auth-form .form-check-input {
    background-color: rgba(5, 18, 48, 0.5);
    border-color: var(--auth-border);
}

.auth-form .form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.auth-form .form-check-label {
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--auth-border);
    margin: 1.5rem 0;
}

.auth-section-label {
    color: var(--auth-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #e8f0ff 100%);
    border: none;
    color: var(--auth-royal-base);
    font-weight: 700;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn-primary:hover {
    color: var(--auth-royal-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.auth-btn-outline {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(126, 176, 255, 0.35);
    color: var(--auth-text);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-btn-outline:hover {
    border-color: var(--auth-primary-light);
    color: #fff;
    background: rgba(65, 105, 225, 0.2);
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.92rem;
    margin: 1.5rem 0 0;
}

.auth-footer a {
    color: var(--auth-primary-light);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

/* Nav on auth pages */

body.auth-page .worship-nav {
    background: rgba(7, 26, 66, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom-color: var(--auth-border) !important;
}

body.auth-page .worship-nav .navbar-brand,
body.auth-page .worship-nav .nav-link {
    color: var(--auth-muted);
}

body.auth-page .worship-nav .navbar-brand:hover,
body.auth-page .worship-nav .nav-link:hover {
    color: var(--auth-text);
}

body.auth-page .worship-nav .navbar-brand {
    color: var(--auth-text);
}

body.auth-page .worship-nav .btn-worship {
    background: #fff !important;
    border-color: #fff !important;
    color: #0a2463 !important;
}

body.auth-page .worship-nav .btn-worship:hover {
    background: #e8f0ff !important;
    border-color: #e8f0ff !important;
    color: #051230 !important;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        border-right: none;
        border-bottom: 1px solid var(--auth-border);
        padding: 2rem 1.75rem;
    }

    .auth-brand-features {
        display: none;
    }
}

/* Status / confirmation pages */

.auth-status-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
}

.auth-status-card {
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
}

.auth-status-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.75rem;
    border: 1px solid var(--auth-border);
}

.auth-status-icon--info {
    background: rgba(65, 105, 225, 0.2);
    color: var(--auth-primary-light);
}

.auth-status-icon--success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.auth-status-icon--warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.auth-status-icon--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.auth-status-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--auth-primary-light);
    margin-bottom: 0.75rem;
}

.auth-status-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--auth-text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.auth-status-text {
    color: var(--auth-muted);
    line-height: 1.7;
    margin: 0 0 1.5rem;
    font-size: 0.98rem;
}

.auth-status-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-status-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-status-step-num {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(65, 105, 225, 0.2);
    color: var(--auth-primary-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.auth-link-sm {
    color: var(--auth-primary-light);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-link-sm:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-shell--narrow {
    max-width: 920px;
}

@media (max-width: 576px) {
    .auth-page-wrap {
        padding: 1.5rem 1rem 2rem;
        align-items: flex-start;
    }

    .auth-shell {
        border-radius: 18px;
    }

    .auth-form-panel,
    .auth-brand-panel {
        padding: 1.5rem;
    }

    .auth-status-card {
        border-radius: 18px;
        padding: 1.75rem 1.5rem;
    }
}
