/* ═══ Temple Auth — Login & Register (Web + MAUI) ═══ */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    font-family: var(--auth-font);
    position: relative;
    overflow-x: hidden;
    background: var(--neutral-50);
}

.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(191, 186, 95, 0.25), transparent 55%),
        radial-gradient(ellipse 70% 55% at 95% 15%, rgba(214, 213, 181, 0.35), transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(191, 186, 95, 0.2), transparent 55%),
        linear-gradient(165deg, var(--brand-50) 0%, var(--neutral-50) 35%, var(--brand-100) 70%, var(--brand-50) 100%);
}

.auth-page-ornament {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(212, 160, 23, 0.12);
    pointer-events: none;
    z-index: 0;
}

.auth-page-ornament-tl {
    top: -120px;
    left: -120px;
    border-color: rgba(45, 138, 95, 0.2);
    box-shadow: inset 0 0 60px rgba(255, 213, 79, 0.12);
}

.auth-page-ornament-br {
    bottom: -100px;
    right: -100px;
    border-color: rgba(245, 197, 24, 0.25);
}

.auth-page > *:not(.auth-page-ornament):not(.auth-back-home) {
    position: relative;
    z-index: 1;
    width: 100%;
}

@media (min-width: 901px) {
    .auth-page {
        align-items: center;
        justify-content: center;
        padding: 1rem 1rem 0.5rem;
    }

    .auth-page > *:not(.auth-page-ornament):not(.auth-back-home):not(.auth-login-page) {
        width: auto;
    }

    .auth-page > .auth-login-page {
        width: 100%;
        max-width: 980px;
        min-width: min(100%, 720px);
    }
}

.auth-page-footer {
    text-align: center;
    padding: 1rem 0 1.25rem;
    margin-top: auto;
}

.auth-om {
    display: block;
    font-size: 1.75rem;
    color: var(--temple-gold);
    opacity: 0.7;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.auth-page-note {
    margin: 0;
    font-size: 0.75rem;
    color: #2D6A4F;
    letter-spacing: 0.04em;
}

.auth-page-note-sub {
    margin: 0.2rem 0 0;
    font-size: 0.68rem;
    color: #5C7A6A;
}

.auth-back-home {
    position: fixed;
    top: max(0.85rem, calc(env(safe-area-inset-top, 0px) + 0.35rem));
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    z-index: 10050;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    font-family: 'Inter', system-ui, sans-serif;
    color: #ffffff;
    background: rgba(6, 26, 49, 0.94);
    border: 1px solid rgba(77, 208, 225, 0.4);
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(6, 26, 49, 0.35);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.auth-back-home:hover,
.auth-back-home:focus-visible {
    color: var(--d2kss-teal-glow, #4dd0e1);
    background: rgba(10, 37, 64, 0.98);
    border-color: rgba(77, 208, 225, 0.55);
    transform: translateY(-1px);
}

.auth-page-d2kss:not(:has(.auth-login-page)) .auth-back-home {
    color: var(--d2kss-navy, #0a2540);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 136, 168, 0.28);
    box-shadow: 0 4px 18px rgba(6, 26, 49, 0.14);
}

.auth-page-d2kss:not(:has(.auth-login-page)) .auth-back-home:hover,
.auth-page-d2kss:not(:has(.auth-login-page)) .auth-back-home:focus-visible {
    color: var(--d2kss-teal, #0088a8);
    background: #fff;
    border-color: rgba(0, 136, 168, 0.45);
}

.auth-back-home i {
    font-size: 0.95rem;
}

.auth-page:has(.auth-login-page) {
    overflow: hidden;
}

.auth-page > .auth-login-page {
    flex: 1 1 auto;
    min-height: 0;
}

.auth-login-back-desktop {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 5;
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    background: #061a31;
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    text-decoration: none;
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-login-back-desktop i {
    color: #ffffff;
}

.auth-login-back-desktop:hover,
.auth-login-back-desktop:focus-visible {
    color: #ffffff;
    background: #0a2540;
    border-color: rgba(255, 255, 255, 0.52);
    transform: translateY(-1px);
    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.28);
}

.auth-login-back-desktop:hover i,
.auth-login-back-desktop:hover span,
.auth-login-back-desktop:focus-visible i,
.auth-login-back-desktop:focus-visible span {
    color: #ffffff;
}

.auth-login-mobile-bar {
    display: none;
}

.auth-login-mobile-only,
.auth-login-desktop-only {
    display: none;
}

.auth-login-mobile-hero,
.auth-login-mobile-sheet {
    display: none;
}

.auth-login-mobile-features {
    display: none;
}

.auth-login-register-btn {
    text-decoration: none;
}

.auth-login-register {
    display: block;
    text-align: center;
    margin-top: 0.15rem;
}

.auth-login-register-hint {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--d2kss-slate-muted, #64748b);
    line-height: 1.35;
}

.auth-login-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 46px;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 136, 168, 0.35);
    background: rgba(0, 136, 168, 0.06);
    color: #0a5f73;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auth-login-register-btn:hover,
.auth-login-register-btn:focus-visible {
    background: rgba(0, 136, 168, 0.12);
    border-color: rgba(0, 136, 168, 0.55);
    color: #084d5c;
    text-decoration: none;
}

.auth-login-register-btn i {
    font-size: 1.05rem;
}

.auth-login-mobile-title {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--d2kss-navy, #0a2540);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.25rem;
}

.auth-footer-register {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
}

.auth-footer-register .auth-footer-text {
    margin: 0;
}

.auth-footer-home {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(13, 148, 136, 0.15);
}

.auth-footer-home--desktop {
    /* shown on desktop; hidden on mobile login compact layout */
}

.auth-footer-link-muted {
    color: var(--d2kss-navy-muted, #4b5563);
    font-weight: 600;
}

.auth-footer-link-muted:hover {
    color: var(--d2kss-teal, #0d9488);
}

/* ── Split login layout (D2KSS + temple hero) ── */
.auth-login-page {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    width: 100%;
    max-width: 980px;
    max-height: min(600px, calc(100dvh - 6.5rem));
    min-height: min(520px, calc(100dvh - 6.5rem));
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 136, 168, 0.28);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.55),
        0 24px 70px rgba(6, 26, 49, 0.28),
        0 0 100px rgba(0, 136, 168, 0.1);
}

/* Hero panel */
.auth-login-hero {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: var(--d2kss-gradient-hero);
}

.auth-login-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 26, 49, 0.88) 0%, rgba(6, 26, 49, 0.35) 55%, transparent 100%);
}

.auth-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.auth-login-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-login-hero-img--temple {
    object-position: center 40%;
    opacity: 0.92;
}

.auth-login-hero-img--deity {
    position: absolute;
    inset: 0;
    object-position: center 22%;
    opacity: 0.55;
    mix-blend-mode: luminosity;
}

.auth-login-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(6, 26, 49, 0.97) 0%, rgba(6, 26, 49, 0.78) 42%, rgba(6, 26, 49, 0.52) 100%),
        linear-gradient(115deg, rgba(0, 136, 168, 0.28) 0%, transparent 52%),
        linear-gradient(270deg, rgba(6, 26, 49, 0.65) 0%, transparent 48%);
    pointer-events: none;
}

.auth-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(77, 208, 225, 0.35) 0, transparent 42%),
        radial-gradient(circle at 85% 70%, rgba(191, 186, 95, 0.22) 0, transparent 38%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.04) 0,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 12px
        );
}

.auth-login-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1.25rem 1.35rem;
    text-align: center;
}

.auth-hero-logo-ring {
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--d2kss-teal-light), var(--d2kss-brand), var(--d2kss-teal));
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(0, 136, 168, 0.35);
    margin-bottom: 0.75rem;
}

.auth-login-hero-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    display: block;
}

.auth-login-hero-title {
    margin: 0 0 0.4rem;
    font-family: 'Inter', 'Manrope', system-ui, sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
    -webkit-font-smoothing: antialiased;
}

.auth-login-hero-tagline {
    margin: 0 0 0.35rem;
    font-family: 'Inter', 'Manrope', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--d2kss-teal-glow, #4dd0e1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.auth-login-hero-sub {
    margin: 0 0 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    max-width: 20rem;
}

.auth-hero-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.auth-hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(77, 208, 225, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.auth-hero-features li i {
    color: var(--d2kss-teal-glow);
    font-size: 0.8rem;
}

/* Form panel */
.auth-login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 1.35rem 1.5rem;
    background:
        linear-gradient(168deg, #ffffff 0%, var(--d2kss-surface-soft) 48%, #eef6f9 100%);
    position: relative;
    overflow-y: auto;
}

.auth-login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--d2kss-gradient-teal-wide);
}

.auth-login-panel::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 96px;
    height: 96px;
    background: radial-gradient(circle, rgba(0, 136, 168, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-login-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -0.15rem 0 0.65rem;
}

.auth-login-forgot {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--d2kss-teal);
    text-decoration: none;
}

.auth-login-forgot:hover {
    color: var(--d2kss-navy);
    text-decoration: underline;
}

.auth-login-card {
    width: 100%;
    max-width: 400px;
    border: none;
    box-shadow: none;
    background: transparent;
}

.auth-login-card-header {
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, #eef6fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 136, 168, 0.14);
}

.auth-login-card-header-accent {
    height: 5px;
    background: linear-gradient(90deg, #0088a8 0%, #4dd0e1 50%, #0088a8 100%);
}

.auth-login-card-header-inner {
    padding: 0.85rem 1.25rem 0.65rem;
}

.auth-login-create-inline {
    display: none;
}

.auth-login-card-header .auth-welcome-badge {
    margin-bottom: 0.4rem;
    font-size: 0.64rem;
    padding: 0.22rem 0.72rem;
    color: var(--d2kss-navy, #0a2540);
    background: linear-gradient(135deg, #e8f4f8 0%, #d5eef5 100%);
    border: 1px solid rgba(0, 136, 168, 0.22);
}

.auth-login-card-header .auth-temple-name {
    font-size: 1.25rem;
    color: var(--d2kss-navy, #0a2540);
    margin-bottom: 0.3rem;
}

.auth-login-card-header .auth-page-title {
    font-size: 0.84rem;
    color: var(--d2kss-slate-muted, #64748b);
    line-height: 1.4;
    max-width: none;
    margin: 0 auto;
}

.auth-login-card-body {
    background: #ffffff;
}

.auth-card {
    background: #fff;
    border-radius: var(--temple-radius-lg);
    border: 1px solid rgba(212, 160, 23, 0.22);
    box-shadow:
        0 4px 24px rgba(92, 16, 16, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
}

.auth-card-top {
    text-align: center;
    padding: 1.75rem 1.75rem 1.1rem;
    background: linear-gradient(180deg, #FFFEF9 0%, #fff 100%);
    border-bottom: 1px solid var(--temple-border-light);
    position: relative;
}

.auth-card-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 3px;
    border-radius: 2px;
    background: var(--temple-gradient-gold);
}

.auth-login-page .auth-card-emblem-row {
    display: none;
}

.auth-login-card-top {
    padding-top: 1.1rem;
}

.auth-card-emblem-row {
    margin-bottom: 0.75rem;
}

.auth-welcome-badge {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--temple-red-dark);
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid rgba(212, 160, 23, 0.45);
    border-radius: 999px;
}

.auth-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(139, 21, 56, 0.15));
}

.auth-temple-name {
    margin: 0 0 0.35rem;
    font-family: 'Inter', 'Manrope', system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--temple-red-dark);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.auth-page-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--temple-muted);
    line-height: 1.45;
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

.auth-card-body {
    padding: 1.35rem 1.75rem 1.65rem;
}

.auth-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--temple-text-soft);
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-field {
    position: relative;
}

.auth-field .field-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--temple-gold-dark);
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
}

.auth-field .form-control {
    display: block;
    width: 100%;
    height: 3.15rem;
    padding: 0.5rem 0.9rem 0.5rem 2.7rem;
    font-size: 1rem;
    color: var(--temple-text);
    background: #FFFEF9;
    border: 1.5px solid var(--temple-border);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-field .form-control::placeholder {
    color: #A89888;
}

.auth-field .form-control:focus {
    background: #fff;
    border-color: var(--temple-maroon);
    outline: none;
    box-shadow: 0 0 0 4px rgba(27, 107, 74, 0.12);
}

.auth-field .validation-message {
    display: block;
    font-size: 0.76rem;
    color: #DC2626;
    margin-top: 0.35rem;
}

/* Password field + visibility toggle */
.auth-field-password {
    position: relative;
    display: block;
}

.auth-field-password .form-control,
.auth-field-password .auth-input {
    padding-right: 2.85rem !important;
}

.auth-password-toggle {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--d2kss-slate-muted, #5a6c7d);
    cursor: pointer;
    z-index: 4;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-password-toggle:hover {
    background: rgba(0, 136, 168, 0.1);
    color: var(--d2kss-teal, #0088a8);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid var(--d2kss-teal, #0088a8);
    outline-offset: 2px;
}

.auth-password-toggle i {
    font-size: 1.05rem;
    pointer-events: none;
}

/* Legacy CSS mask removed — AuthPasswordField uses native type="password" / type="text". */
.auth-input-masked {
    /* no-op kept for safety if old markup is cached */
}

/* Beat global .theme-ayyappa .form-control (shadcn) on auth pages */
.auth-page.theme-ayyappa .auth-field .form-control,
.auth-page.theme-ayyappa .auth-field .auth-input,
.auth-page-d2kss .auth-field .form-control,
.auth-page-d2kss .auth-field .auth-input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 3rem !important;
    height: 3rem !important;
    padding: 0.55rem 0.85rem 0.55rem 2.65rem !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    border-radius: 10px !important;
}

.auth-page.theme-ayyappa .auth-field-password .form-control,
.auth-page.theme-ayyappa .auth-field-password .auth-input,
.auth-page-d2kss .auth-field-password .form-control,
.auth-page-d2kss .auth-field-password .auth-input {
    padding-right: 2.85rem !important;
}

.auth-page.theme-ayyappa .auth-field .field-icon,
.auth-page-d2kss .auth-field .field-icon {
    position: absolute !important;
    left: 0.85rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1.125rem !important;
    text-align: center !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.auth-login-page .auth-field-group {
    margin-bottom: 0.85rem;
}

.auth-login-page .auth-label {
    margin-bottom: 0.35rem;
}

.auth-login-page .auth-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.auth-login-page .auth-card-top::after {
    width: 3rem;
    height: 3px;
    background: var(--d2kss-gradient-teal, linear-gradient(90deg, #0088a8, #00a8cc));
    opacity: 0.85;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.auth-alert-danger {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #991B1B;
    border-left: 3px solid #DC2626;
}

.auth-alert-success {
    background: linear-gradient(135deg, #FDF8F3 0%, #FDE7EF 100%);
    color: #065F46;
    border-left: 3px solid #10B981;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3.2rem;
    margin-top: 0.35rem;
    padding: 0 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #6B2233;
    background: var(--temple-gradient-gold);
    border: 1px solid #D4A017;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.4);
    letter-spacing: 0.04em;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--temple-gradient-gold-hover);
    box-shadow: 0 8px 28px rgba(212, 160, 23, 0.45);
}

.auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--temple-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--temple-border), transparent);
}

.auth-footer {
    text-align: center;
    padding-top: 0.5rem;
}

.auth-footer-text {
    font-size: 0.85rem;
    color: var(--temple-muted);
    margin: 0 0 0.4rem;
}

.auth-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--temple-red-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1.5px solid rgba(27, 107, 74, 0.25);
    background: rgba(240, 253, 244, 0.9);
    transition: all 0.2s;
}

.auth-footer-link:hover {
    color: var(--temple-gold-dark);
    border-color: var(--temple-gold);
    background: var(--temple-gold-pale);
}

/* ── Login slider page — mobile-first ── */

.auth-gallery-page {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Slider */
.auth-login-slider {
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.auth-slider-viewport {
    position: relative;
    width: 100%;
    height: clamp(360px, 52dvh, 480px);
    min-height: 360px;
    overflow: hidden;
    background: #145A3D;
}

.auth-slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.65s ease;
    pointer-events: none;
}

.auth-slider-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.auth-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    filter: saturate(1.1) contrast(1.08) brightness(1.05);
    transform: scale(1.04);
    transition: transform 0.65s ease;
}

.auth-slider-slide.is-active img {
    animation: authSlideKenBurns 7s ease-out forwards;
}

@keyframes authSlideKenBurns {
    from { transform: scale(1.04); }
    to { transform: scale(1.1); }
}

.auth-slider-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(15, 61, 42, 0.88) 0%, rgba(15, 61, 42, 0.35) 28%, rgba(15, 61, 42, 0.08) 55%, transparent 75%),
        linear-gradient(180deg, rgba(15, 61, 42, 0.35) 0%, transparent 22%);
    pointer-events: none;
    z-index: 2;
}

.auth-slider-brand {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 1.25rem 1.5rem 3.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    pointer-events: none;
}

.auth-slider-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow:
        0 0 0 3px rgba(245, 197, 24, 0.55),
        0 8px 28px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.5rem;
}

.auth-slider-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    max-width: 18ch;
}

.auth-slider-tag {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--temple-gold-light);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.auth-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #145A3D;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.2s;
}

.auth-slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.auth-slider-prev { left: 0.85rem; }
.auth-slider-next { right: 0.85rem; }

.auth-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 5;
    background: transparent;
}

.auth-slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, width 0.25s;
}

.auth-slider-dot.is-active {
    width: 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFD54F, #F5C518);
    box-shadow: 0 2px 10px rgba(245, 197, 24, 0.5);
}

.auth-gallery-center {
    position: relative;
    z-index: 6;
    width: 100%;
    max-width: 100%;
    margin: -2.75rem auto 0;
    padding: 0 1rem 0.5rem;
}

.auth-login-card--elevated {
    background: #fff;
    border: 1px solid rgba(183, 228, 199, 0.85);
    border-radius: 24px;
    box-shadow:
        0 -6px 32px rgba(15, 61, 42, 0.1),
        0 16px 48px rgba(15, 61, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset;
    margin-top: 0;
    overflow: hidden;
}

.auth-login-card--elevated::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-800) 0%, var(--brand-400) 50%, var(--brand-800) 100%);
}

.auth-login-card--elevated .auth-card-top {
    background: linear-gradient(180deg, #FEFFFE 0%, #F7FEF9 100%);
    border-bottom-color: #D8F3DC;
    padding: 1.5rem 1.35rem 1.1rem;
}

.auth-login-card--elevated .auth-card-body {
    padding: 1.2rem 1.35rem 1.6rem;
}

.auth-login-card--elevated .auth-card-emblem-row {
    display: none;
}

.auth-login-card--elevated .auth-temple-name {
    font-size: 1.38rem;
}

.auth-login-card--elevated .auth-field .form-control {
    font-size: 16px;
    min-height: 3.25rem;
}

.auth-login-card--elevated .auth-btn {
    min-height: 3.35rem;
    font-size: 1.05rem;
}

.auth-gallery-caption {
    display: none;
}

/* ── Login photo frames layout (replaces full slider) ── */

/* Single-screen login: no page scroll */
.auth-page:has(.auth-gallery-page--fit) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.auth-page:has(.auth-gallery-page--fit) .auth-page-footer {
    display: none;
}

.auth-gallery-page--frames.auth-gallery-page--fit {
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.auth-gallery-page--frames {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.auth-gallery-shell {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    flex: 1;
    min-height: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #f3faf5 0%, #e8f5ec 42%, #f0f8f3 100%);
}

/* ── Blended top fade carousel — images sit on bottom border ── */
.auth-blend-stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
    height: 100%;
    width: 100%;
    padding: 0 0.35rem;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-blend-stage--top {
    border-bottom: 2px solid rgba(200, 135, 25, 0.28);
    background: linear-gradient(180deg, rgba(20, 90, 61, 0.04) 0%, transparent 85%);
}

.auth-blend-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transform: scale(0.96) translateY(4px);
    transition: opacity 1.1s ease, transform 1.1s ease;
    pointer-events: none;
    padding: 0 0.35rem;
}

.auth-blend-slide.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    z-index: 2;
}

/* ── Bottom trio — images sit on top border, center prominent ── */
.auth-blend-trio {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 0 0.15rem;
    overflow: hidden;
    flex-shrink: 0;
    border-top: 2px solid rgba(200, 135, 25, 0.28);
    background: linear-gradient(0deg, rgba(20, 90, 61, 0.04) 0%, transparent 85%);
}

.auth-blend-card {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: transform 0.65s ease, opacity 0.65s ease, filter 0.65s ease;
    transform: scale(0.9) translateY(-2px);
    opacity: 0.78;
    filter: saturate(0.92);
    z-index: 1;
}

.auth-blend-card.is-side {
    margin: 0 -0.7rem;
}

.auth-blend-card.is-center {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: saturate(1.05);
    z-index: 3;
    margin: -2px 0.1rem 0;
}

.auth-blend-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12%;
    max-width: 40px;
    z-index: 4;
    pointer-events: none;
}

.auth-blend-fade--left {
    left: 0;
    background: linear-gradient(90deg, rgba(238, 248, 241, 0.95) 0%, transparent 100%);
}

.auth-blend-fade--right {
    right: 0;
    background: linear-gradient(270deg, rgba(238, 248, 241, 0.95) 0%, transparent 100%);
}

.auth-photo-frame {
    margin: 0;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 12px;
    background: linear-gradient(145deg, #FFE082 0%, #F5C518 35%, #C88719 70%, #8B5E14 100%);
    box-shadow:
        0 6px 18px rgba(15, 61, 42, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 1px 0 rgba(255, 255, 255, 0.45);
    overflow: hidden;
    position: relative;
}

.auth-photo-frame::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 1;
}

.auth-photo-frame--hero {
    width: clamp(128px, 44vw, 172px);
    max-height: min(168px, 100%);
    aspect-ratio: 4 / 5;
    margin-bottom: -2px;
}

.auth-photo-frame--trio {
    width: clamp(96px, 29vw, 120px);
    aspect-ratio: 4 / 5;
    border-radius: 11px;
    margin-top: -2px;
}

.auth-blend-card.is-center .auth-photo-frame--trio {
    width: clamp(122px, 38vw, 152px);
    max-height: min(172px, 100%);
    box-shadow:
        0 10px 26px rgba(15, 61, 42, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.auth-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    border-radius: 9px;
}

.auth-gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.1rem 0.6rem;
    overflow: visible;
    flex-shrink: 0;
    z-index: 2;
}

.auth-gallery-hero {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem 0.5rem;
    overflow: hidden;
}

.auth-gallery-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: saturate(1.06) contrast(1.04);
    z-index: 0;
}

.auth-gallery-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(15, 61, 42, 0.5) 0%, rgba(15, 61, 42, 0.15) 45%, rgba(15, 61, 42, 0.4) 100%);
    pointer-events: none;
}

.auth-gallery-page--frames .auth-gallery-center {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0;
    flex-shrink: 0;
    min-height: 0;
}

.auth-login-brand-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.auth-login-brand-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.45);
}

.auth-login-brand-text {
    min-width: 0;
    text-align: left;
}

.auth-login-brand-text .auth-welcome-badge {
    margin-bottom: 0.15rem;
}

.auth-login-brand-text .auth-temple-name {
    margin: 0;
    text-align: left;
}

.auth-login-card--compact.auth-login-card--elevated {
    border-radius: 16px;
    border: 1px solid rgba(183, 228, 199, 0.9);
    box-shadow: 0 8px 24px rgba(15, 61, 42, 0.12);
    max-height: 100%;
    width: 100%;
}

.auth-login-card--compact .auth-card-top {
    padding: 0.5rem 0.75rem 0.35rem;
}

.auth-login-card--compact .auth-card-body {
    padding: 0.4rem 0.75rem 0.55rem;
}

.auth-login-card--compact .auth-welcome-badge {
    font-size: 0.54rem;
    padding: 0.12rem 0.4rem;
}

.auth-login-card--compact .auth-temple-name {
    font-size: 0.95rem;
}

.auth-login-card--compact .auth-page-title {
    font-size: 0.68rem;
    line-height: 1.3;
    margin: 0;
    text-align: center;
    color: var(--auth-muted);
}

.auth-login-card--compact .auth-field-group {
    margin-bottom: 0.35rem;
}

.auth-login-card--compact .auth-label {
    font-size: 0.62rem;
    margin-bottom: 0.15rem;
}

.auth-login-card--compact .auth-field .form-control {
    min-height: 2.35rem;
    font-size: 16px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.auth-login-card--compact .auth-btn {
    min-height: 2.45rem;
    font-size: 0.88rem;
    margin-top: 0.05rem;
}

.auth-register-line {
    margin: 0.35rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--auth-muted);
}

.auth-register-link {
    font-weight: 600;
    color: var(--brand-700);
    text-decoration: none;
}

.auth-register-link:hover {
    text-decoration: underline;
}

@media (max-height: 720px) {
    .auth-photo-frame--hero {
        width: clamp(112px, 40vw, 148px);
        max-height: min(148px, 100%);
    }

    .auth-photo-frame--trio {
        width: clamp(86px, 26vw, 108px);
    }

    .auth-blend-card.is-center .auth-photo-frame--trio {
        width: clamp(108px, 34vw, 132px);
        max-height: min(152px, 100%);
    }

    .auth-login-brand-logo {
        width: 32px;
        height: 32px;
    }

    .auth-login-card--compact .auth-card-top {
        padding: 0.55rem 0.75rem 0.4rem;
    }

    .auth-login-card--compact .auth-card-body {
        padding: 0.45rem 0.75rem 0.55rem;
    }

    .auth-login-card--compact .auth-temple-name {
        font-size: 0.98rem;
    }

    .auth-login-card--compact .auth-field .form-control {
        min-height: 2.35rem;
    }

    .auth-login-card--compact .auth-btn {
        min-height: 2.45rem;
    }
}

@media (max-height: 640px) {
    .auth-photo-frame--hero {
        width: clamp(100px, 36vw, 128px);
    }

    .auth-login-card--compact .auth-page-title {
        display: none;
    }

    .auth-register-line {
        margin-top: 0.35rem;
        font-size: 0.72rem;
    }
}

@media (min-width: 600px) and (max-width: 900px) {
    .auth-gallery-page--frames .auth-gallery-center {
        max-width: 400px;
        margin-top: 0;
        padding: 0;
    }

    .auth-gallery-page:not(.auth-gallery-page--frames) .auth-gallery-center {
        max-width: 480px;
        margin-top: -3rem;
        padding: 0 1.35rem 1rem;
    }

    .auth-slider-viewport {
        height: clamp(380px, 48dvh, 460px);
        border-radius: 0 0 24px 24px;
    }

    .auth-slider-title {
        font-size: 1.4rem;
    }
}

/* Desktop — framed gallery + compact login */
@media (min-width: 901px) {
    .auth-gallery-page--frames.auth-gallery-page--fit {
        max-width: 420px;
        max-height: min(680px, calc(100dvh - 1.5rem));
        margin: 0.75rem auto;
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid rgba(183, 228, 199, 0.7);
        box-shadow: 0 20px 60px rgba(15, 61, 42, 0.12);
    }

    .auth-gallery-page--frames:not(.auth-gallery-page--fit) {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        max-width: 1020px;
        min-height: min(580px, calc(100dvh - 5.5rem));
        margin: 1rem auto;
        padding: 0;
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid rgba(183, 228, 199, 0.7);
        box-shadow:
            0 24px 80px rgba(15, 61, 42, 0.12),
            0 0 60px rgba(255, 213, 79, 0.1);
        align-items: stretch;
    }

    .auth-login-slider {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .auth-slider-viewport {
        flex: 1;
        height: auto;
        min-height: 520px;
        border-radius: 0;
    }

    .auth-slider-slide.is-active img {
        animation: none;
        transform: scale(1.04);
    }

    .auth-slider-brand {
        padding-bottom: 3rem;
    }

    .auth-slider-title {
        font-size: 1.35rem;
    }

    .auth-slider-dots {
        margin-top: 0;
        padding: 0.85rem 1rem 1rem;
        background: linear-gradient(0deg, rgba(107, 34, 51, 0.85) 0%, transparent 100%);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .auth-slider-dot {
        background: rgba(255, 255, 255, 0.35);
    }

    .auth-slider-dot.is-active {
        background: linear-gradient(90deg, #FFD54F, #F5C518);
    }

    .auth-gallery-center {
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: none;
        margin-top: 0;
        padding: 2rem 2rem 1.5rem;
        background: linear-gradient(165deg, #FEFFFE 0%, #FFFBF7 50%, #FEFCE8 100%);
    }

    .auth-login-card--elevated {
        margin-top: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .auth-login-card--elevated::before {
        display: none;
    }

    .auth-login-card--elevated .auth-card-emblem-row {
        display: block;
    }

    .auth-login-card--elevated .auth-card-top {
        background: transparent;
        border-bottom: none;
        padding-top: 0;
    }

    .auth-gallery-caption {
        display: none;
    }
}

@media (min-width: 901px) {
    .auth-gallery-page:not(.auth-gallery-page--frames) .auth-gallery-caption {
        display: none;
    }
}


/* Register-only wrap (no split) */
.auth-wrap {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.auth-emblem {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--temple-gradient-maroon);
    border: 3px solid var(--temple-border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--temple-shadow-gold);
}

/* ── D2KSS auth page backdrop ── */
.auth-page.auth-page-d2kss {
    justify-content: center;
    min-height: 100dvh;
    padding: 0.75rem 1rem 0;
    background: var(--d2kss-navy-deep);
}

.auth-page.auth-page-d2kss::before {
    background:
        linear-gradient(165deg, rgba(6, 26, 49, 0.92) 0%, rgba(10, 37, 64, 0.78) 42%, rgba(6, 26, 49, 0.9) 100%),
        url('../images/landing/temple-exterior.jpg') center center / cover no-repeat fixed;
}

.auth-page.auth-page-d2kss .auth-page-ornament {
    border-color: rgba(77, 208, 225, 0.22);
    opacity: 0.55;
}

.auth-page.auth-page-d2kss .auth-page-footer {
    padding: 0.75rem 1rem 1rem;
    margin-top: auto;
}

.auth-page.auth-page-d2kss .auth-om {
    color: var(--d2kss-teal-glow);
    opacity: 0.92;
}

.auth-page.auth-page-d2kss .auth-page-note {
    color: rgba(255, 255, 255, 0.9);
}

.auth-page.auth-page-d2kss .auth-page-note-sub {
    color: rgba(255, 255, 255, 0.62);
}

.auth-page.auth-page-d2kss:has(.auth-login-page) {
    align-items: center;
    min-height: 100dvh;
    min-height: 100svh;
}

@media (min-width: 901px) {
    .auth-page.auth-page-d2kss:has(.auth-login-page) {
        align-items: center;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }

    .auth-page.auth-page-d2kss:has(.auth-login-page) > .auth-login-page {
        flex: 0 0 auto;
        margin-top: auto;
        margin-bottom: auto;
    }

    .auth-page.auth-page-d2kss:has(.auth-login-page) .auth-page-footer {
        margin-top: 0;
        flex-shrink: 0;
        padding: 0.5rem 1rem 1rem;
    }

    .auth-page > .auth-login-page {
        width: 100%;
        max-width: 980px;
        min-width: min(100%, 720px);
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        max-height: min(600px, calc(100dvh - 6.5rem));
        min-height: min(520px, calc(100dvh - 6.5rem));
    }

    .auth-login-mobile-sheet {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .auth-login-create-inline {
        display: none;
    }

    .auth-login-panel {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .auth-login-card--premium.auth-card {
        background: #ffffff;
        border: 1px solid rgba(0, 136, 168, 0.14);
        border-radius: 18px;
        box-shadow:
            0 10px 36px rgba(6, 26, 49, 0.08),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset;
        max-width: 400px;
        width: 100%;
        overflow: hidden;
    }

    .auth-login-card--premium::before {
        display: none;
    }

    .auth-login-card-header {
        border-radius: 18px 18px 0 0;
        background: linear-gradient(180deg, #f4f9fc 0%, #ffffff 100%);
    }

    .auth-login-card-header-inner {
        padding: 1rem 1.25rem 0.65rem;
    }

    .auth-login-card-body {
        background: #ffffff;
    }

    .auth-login-back-desktop {
        display: inline-flex;
        color: #ffffff !important;
        background: #061a31 !important;
        border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow:
            0 6px 22px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(0, 0, 0, 0.28) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    .auth-login-back-desktop i,
    .auth-login-back-desktop span {
        color: #ffffff !important;
    }

    .auth-login-back-desktop:hover,
    .auth-login-back-desktop:focus-visible {
        color: #ffffff !important;
        background: #0a2540 !important;
        border-color: rgba(255, 255, 255, 0.55) !important;
    }

    .auth-login-back-desktop:hover i,
    .auth-login-back-desktop:hover span,
    .auth-login-back-desktop:focus-visible i,
    .auth-login-back-desktop:focus-visible span {
        color: #ffffff !important;
    }

    .auth-login-page .auth-temple-name {
        font-size: 1.2rem;
    }

    .auth-login-page .auth-page-title {
        font-size: 0.86rem;
    }

    .auth-login-page .auth-login-card-header-inner {
        padding: 0.85rem 1.25rem 0.55rem;
    }

    .auth-login-page .auth-card-body,
    .auth-login-page .auth-login-card-body {
        padding: 0.65rem 1.25rem 0.85rem;
    }

    .auth-login-page .auth-field-group {
        margin-bottom: 0.55rem !important;
    }

    .auth-login-page .auth-footer-home--desktop {
        display: block;
        margin-top: 0.5rem;
        padding-top: 0.55rem;
    }

    .auth-page-d2kss:has(.auth-login-page) .auth-field .form-control,
    .auth-page-d2kss:has(.auth-login-page) .auth-field .auth-input {
        min-height: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
        background: #fffef9 !important;
    }

    .auth-login-submit.auth-btn {
        min-height: 48px;
        padding: 0.62rem 1rem;
        font-size: 0.92rem;
        border-radius: 10px;
    }
}

/* ── Login page (compact shell — register) ── */
.auth-page:has(.auth-login-shell) {
    justify-content: center;
    min-height: 100dvh;
    padding: 0.75rem 1rem 0;
}

.auth-page:has(.auth-login-shell)::before {
    background:
        linear-gradient(165deg, rgba(6, 26, 49, 0.94) 0%, rgba(10, 37, 64, 0.82) 40%, rgba(6, 26, 49, 0.94) 100%),
        url('../images/ayyappa-hero-sm.jpg') center 30% / cover no-repeat fixed;
}

.auth-page:has(.auth-login-shell) .auth-page-ornament {
    border-color: rgba(77, 208, 225, 0.2);
    opacity: 0.6;
}

.auth-page:has(.auth-login-shell) .auth-page-footer {
    padding: 0.75rem 1rem 1rem;
    margin-top: auto;
}

.auth-page:has(.auth-login-shell) .auth-om {
    color: var(--d2kss-teal-glow);
    opacity: 0.9;
}

.auth-page:has(.auth-login-shell) .auth-page-note {
    color: rgba(255, 255, 255, 0.88);
}

.auth-page:has(.auth-login-shell) .auth-page-note-sub {
    color: rgba(255, 255, 255, 0.62);
}

.auth-login-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0.5rem 0 0.75rem;
}

.auth-login-shell .auth-login-card {
    width: 100%;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 80px rgba(245, 197, 24, 0.08);
}

.auth-login-shell .auth-login-card::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--d2kss-gradient-teal-wide);
}

.auth-login-header {
    text-align: center;
    padding: 1.35rem 1.25rem 1rem;
    background: linear-gradient(180deg, #f4f7fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(6, 26, 49, 0.08);
}

.auth-login-logo-ring {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--d2kss-teal-light), var(--d2kss-brand), var(--d2kss-teal));
    box-shadow: 0 8px 24px rgba(0, 136, 168, 0.35);
}

.auth-login-logo-ring img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.auth-login-eyebrow {
    display: inline-block;
    margin: 0 0 0.4rem;
    padding: 0.22rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--d2kss-navy);
    background: linear-gradient(135deg, #e8f4f8 0%, #d5eef5 100%);
    border: 1px solid rgba(0, 136, 168, 0.28);
    border-radius: 999px;
}

.auth-login-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--d2kss-navy);
    line-height: 1.2;
}

.auth-login-temple {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--d2kss-slate-muted);
    letter-spacing: 0.02em;
}

.auth-login-mantra {
    margin: 0.45rem 0 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--d2kss-teal);
}

.auth-login-body {
    padding: 1rem 1.25rem 1.2rem;
    background: #fff;
}

.auth-login-shell .auth-field-group {
    margin-bottom: 0.75rem;
}

.auth-login-shell .auth-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--d2kss-navy);
    margin-bottom: 0.3rem;
}

.auth-login-shell .auth-field .form-control {
    min-height: 2.85rem;
    font-size: 16px;
    border-radius: 12px;
    border-color: var(--d2kss-border);
    background: var(--d2kss-surface-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-login-shell .auth-field .form-control:focus {
    border-color: var(--d2kss-teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 136, 168, 0.18);
}

.auth-login-shell .auth-field .field-icon {
    color: var(--d2kss-teal);
}

.auth-login-submit.auth-btn {
    width: 100%;
    min-height: 2.9rem;
    margin-top: 0.15rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--d2kss-gradient-teal);
    box-shadow: 0 8px 22px rgba(0, 136, 168, 0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-login-submit.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 136, 168, 0.42);
    color: #fff;
}

.auth-login-submit.auth-btn:disabled {
    opacity: 0.72;
}

.auth-login-register {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.auth-login-register a {
    font-weight: 700;
    color: var(--d2kss-teal);
    text-decoration: none;
}

.auth-login-register-link {
    font-weight: 700;
    color: var(--d2kss-teal, #0088a8);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-login-register a:hover {
    color: var(--d2kss-navy);
    text-decoration: underline;
}

/* Register — same shell, taller form */
.auth-page:has(.auth-login-shell--register) {
    justify-content: flex-start;
    overflow-y: auto;
}

.auth-login-shell--register {
    align-items: flex-start;
    max-width: 420px;
    padding: 0.75rem 0 1rem;
}

.auth-login-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #5c7a6a;
}

.auth-login-shell--register .auth-field-group {
    margin-bottom: 0.65rem;
}

.auth-login-shell--register .auth-label-hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #8fa99a;
    font-size: 0.68rem;
}

.auth-login-shell--register .auth-login-header {
    padding: 1.15rem 1.25rem 0.9rem;
}

.auth-login-shell--register .auth-login-logo-ring {
    width: 64px;
    height: 64px;
    margin-bottom: 0.6rem;
}

.auth-login-shell--register .auth-login-title {
    font-size: 1.35rem;
}

@media (min-width: 480px) {
    .auth-login-shell--register {
        max-width: 440px;
    }
}

@media (max-height: 740px) {
    .auth-login-shell--register .auth-login-header {
        padding: 0.9rem 1.15rem 0.7rem;
    }

    .auth-login-shell--register .auth-login-logo-ring {
        width: 52px;
        height: 52px;
        margin-bottom: 0.45rem;
    }

    .auth-login-shell--register .auth-login-title {
        font-size: 1.2rem;
    }

    .auth-login-shell--register .auth-login-subtitle {
        font-size: 0.72rem;
    }

    .auth-login-shell--register .auth-field-group {
        margin-bottom: 0.5rem;
    }

    .auth-login-shell--register .auth-field .form-control {
        min-height: 2.55rem;
    }
}

@media (min-width: 480px) {
    .auth-login-shell {
        max-width: 420px;
    }

    .auth-login-title {
        font-size: 1.55rem;
    }
}

@media (max-height: 700px) {
    .auth-login-header {
        padding: 1rem 1.15rem 0.75rem;
    }

    .auth-login-logo-ring {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }

    .auth-login-title {
        font-size: 1.25rem;
    }

    .auth-login-mantra {
        display: none;
    }

    .auth-login-body {
        padding: 0.85rem 1.15rem 1rem;
    }

    .auth-login-shell .auth-field .form-control {
        min-height: 2.6rem;
    }
}

#app:empty::before {
    content: "Loading…";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--auth-font);
    background: var(--temple-burgundy);
}

/* ── Mobile auth — mobile-first login layout ── */
@media (max-width: 900px) {
    .auth-page:has(.auth-gallery-page--fit) {
        padding: 0;
        justify-content: stretch;
    }

    .auth-page.auth-page-d2kss:has(.auth-login-page) {
        padding: max(0.35rem, env(safe-area-inset-top, 0px)) 0 0;
        justify-content: flex-start;
        min-height: 100dvh;
        min-height: 100svh;
        max-height: none;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-page.auth-page-d2kss {
        padding: 0;
        justify-content: flex-start;
        min-height: 100dvh;
        min-height: 100svh;
    }

    .auth-page.auth-page-d2kss::before {
        background:
            linear-gradient(165deg, rgba(6, 26, 49, 0.94) 0%, rgba(10, 37, 64, 0.88) 100%),
            url('../images/landing/temple-exterior.jpg') center center / cover no-repeat scroll;
    }

    /* Mobile login — temple hero + floating sign-in sheet */
    .auth-page.auth-page-d2kss:has(.auth-login-page)::before {
        background:
            linear-gradient(180deg, rgba(6, 26, 49, 0.35) 0%, rgba(10, 37, 64, 0.2) 38%, #e8f2f6 100%),
            url('../images/ayyappa-hero-sm.jpg') center 20% / cover no-repeat fixed !important;
    }

    .auth-page {
        padding: 0;
        justify-content: flex-start;
        min-height: 100dvh;
        min-height: 100svh;
    }

    .auth-page-ornament {
        display: none;
    }

    .auth-page-footer {
        padding: 0.65rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        margin-top: 0;
    }

    .auth-om {
        font-size: 1.35rem;
        margin-bottom: 0.2rem;
    }

    .auth-page:has(.auth-login-page) .auth-back-home {
        display: none !important;
    }

    .auth-page:has(.auth-login-page) .auth-page-footer {
        display: none;
    }

    .auth-login-page {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
        min-height: min(100dvh, 100svh);
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .auth-login-back-desktop {
        display: none !important;
    }

    .auth-login-hero,
    .auth-login-page .auth-login-hero {
        display: none !important;
    }

    .auth-login-mobile-bar {
        display: none !important;
    }

    .auth-login-mobile-hero {
        display: block;
        position: relative;
        flex-shrink: 0;
        min-height: 128px;
        padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
        overflow: hidden;
    }

    .auth-login-page--register .auth-login-mobile-hero {
        min-height: 76px;
        padding-top: max(0.25rem, env(safe-area-inset-top, 0px));
    }

    .auth-login-page--register .auth-login-mobile-hero-content {
        padding: 0.05rem 0.85rem 0.45rem;
    }

    .auth-login-page--register .auth-login-mobile-logo-ring {
        margin-bottom: 0.2rem;
        padding: 3px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    }

    .auth-login-page--register .auth-login-mobile-hero-logo {
        width: 40px;
        height: 40px;
    }

    .auth-login-page--register .auth-login-mobile-hero-title {
        font-size: 0.78rem;
        max-width: 14rem;
        margin-bottom: 0.05rem;
    }

    .auth-login-page--register .auth-login-mobile-hero-tagline {
        display: none;
    }

    .auth-login-page--register .auth-login-mobile-back {
        top: max(0.4rem, env(safe-area-inset-top, 0px));
        left: max(0.5rem, env(safe-area-inset-left, 0px));
        padding: 0.35rem 0.65rem;
        font-size: 0.72rem;
    }

    .auth-login-page--register .auth-login-mobile-sheet {
        margin-top: -18px;
        padding: 0 0.65rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
    }

    .auth-login-page--register .auth-login-card--premium.auth-card {
        border-radius: 22px;
        margin-bottom: 0.35rem;
    }

    .auth-login-page--register .auth-login-card-header {
        border-radius: 22px 22px 0 0;
    }

    .auth-login-page--register .auth-login-card-header-inner {
        padding: 0.65rem 1rem 0.35rem;
    }

    .auth-login-page--register .auth-welcome-badge {
        display: none;
    }

    .auth-login-page--register .auth-temple-name {
        margin: 0 0 0.15rem;
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .auth-login-page--register .auth-page-title {
        margin: 0;
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .auth-login-page--register .auth-card-body,
    .auth-login-page--register .auth-login-card-body {
        padding: 0.45rem 1rem 1rem !important;
    }

    .auth-login-page--register .auth-field-group {
        margin-bottom: 0.4rem !important;
    }

    .auth-login-page--register .auth-label {
        margin-bottom: 0.2rem;
        font-size: 0.7rem;
    }

    .auth-login-page--register .auth-label-hint {
        font-weight: 500;
        opacity: 0.7;
    }

    .auth-page-d2kss:has(.auth-login-page--register) .auth-field .form-control,
    .auth-page-d2kss:has(.auth-login-page--register) .auth-field .auth-input {
        min-height: 42px !important;
        height: 42px !important;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        border-radius: 10px !important;
    }

    .auth-login-page--register .auth-login-submit.auth-btn {
        min-height: 44px;
        margin-top: 0.15rem;
        padding: 0.5rem 1rem;
        font-size: 0.88rem;
        border-radius: 10px;
    }

    .auth-login-page--register .auth-login-register--inline {
        margin-top: 0.55rem;
        padding: 0.15rem 0 0.1rem;
        text-align: center;
    }

    .auth-login-page--register .auth-login-register-hint {
        margin: 0;
        font-size: 0.8rem;
        color: var(--d2kss-slate-muted, #64748b);
    }

    .auth-login-page--register .auth-login-register-link {
        margin-left: 0.2rem;
        font-weight: 700;
        color: var(--d2kss-teal, #0088a8);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .auth-login-page--register .auth-login-register-link:hover,
    .auth-login-page--register .auth-login-register-link:focus-visible {
        color: var(--d2kss-navy, #0a2540);
    }

    .auth-login-page--register .auth-login-mobile-footer--register {
        display: block;
        margin-top: 0.35rem;
        padding: 0.25rem 0.5rem 0;
    }

    .auth-login-page--register .auth-login-mobile-footer--register .auth-login-mobile-trust {
        font-size: 0.65rem;
        font-weight: 500;
        color: rgba(6, 26, 49, 0.45);
    }

    .auth-login-mobile-hero-bg {
        position: absolute;
        inset: 0;
        overflow: hidden;
    }

    .auth-login-mobile-hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .auth-login-mobile-hero-img--temple {
        object-position: center 38%;
    }

    .auth-login-mobile-hero-img--deity {
        position: absolute;
        inset: 0;
        object-position: center 22%;
        opacity: 0.45;
        mix-blend-mode: luminosity;
    }

    .auth-login-mobile-hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 35%;
        display: block;
    }

    .auth-login-mobile-hero-overlay {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(180deg, rgba(6, 26, 49, 0.92) 0%, rgba(6, 26, 49, 0.72) 22%, rgba(6, 26, 49, 0.45) 52%, rgba(6, 26, 49, 0.92) 100%),
            linear-gradient(115deg, rgba(0, 136, 168, 0.22) 0%, transparent 55%);
        pointer-events: none;
    }

    .auth-login-mobile-hero-pattern {
        position: absolute;
        inset: 0;
        opacity: 0.18;
        pointer-events: none;
        background-image:
            radial-gradient(circle at 18% 22%, rgba(77, 208, 225, 0.45) 0, transparent 42%),
            repeating-linear-gradient(
                45deg,
                rgba(255, 255, 255, 0.05) 0,
                rgba(255, 255, 255, 0.05) 1px,
                transparent 1px,
                transparent 10px
            );
    }

    .auth-login-mobile-back {
        position: absolute;
        top: max(0.55rem, env(safe-area-inset-top, 0px));
        left: max(0.65rem, env(safe-area-inset-left, 0px));
        z-index: 4;
        display: inline-flex;
        align-items: center;
        gap: 0.32rem;
        padding: 0.45rem 0.78rem;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.2;
        color: #ffffff !important;
        background: #061a31;
        border: 1.5px solid rgba(255, 255, 255, 0.4);
        text-decoration: none;
        box-shadow:
            0 6px 22px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(0, 0, 0, 0.28);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    .auth-login-mobile-back i,
    .auth-login-mobile-back span {
        color: #ffffff !important;
    }

    .auth-login-mobile-back:active {
        transform: scale(0.98);
        background: #0a2540;
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.45),
            0 0 0 1px rgba(0, 0, 0, 0.25);
    }

    .auth-login-mobile-hero-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.15rem 1rem 0.65rem;
    }

    .auth-login-mobile-logo-ring {
        padding: 4px;
        border-radius: 50%;
        background: linear-gradient(145deg, #7ee8f7, #0088a8, #4dd0e1);
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.45),
            0 0 24px rgba(77, 208, 225, 0.4);
        margin-bottom: 0.4rem;
    }

    .auth-login-mobile-hero-logo {
        width: 56px;
        height: 56px;
        object-fit: contain;
        border-radius: 50%;
        background: #fff;
        padding: 3px;
        display: block;
    }

    .auth-login-mobile-hero-title {
        margin: 0 0 0.2rem;
        font-family: 'Inter', 'Manrope', system-ui, sans-serif;
        font-size: 0.92rem;
        font-weight: 800;
        line-height: 1.3;
        color: #fff;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
        max-width: 16rem;
    }

    .auth-login-mobile-hero-tagline {
        margin: 0 0 0.45rem;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--d2kss-teal-glow, #4dd0e1);
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    }

    .auth-login-mobile-features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .auth-login-mobile-features li {
        display: inline-flex;
        align-items: center;
        gap: 0.28rem;
        padding: 0.28rem 0.55rem;
        font-size: 0.64rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(77, 208, 225, 0.45);
        border-radius: 999px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .auth-login-mobile-features li i {
        color: var(--d2kss-teal-glow, #4dd0e1);
        font-size: 0.72rem;
    }

    .auth-login-mobile-sheet {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        margin-top: -22px;
        padding: 0 0.75rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scroll-padding-bottom: 1.5rem;
    }

    .auth-login-mobile-logo {
        display: none;
    }

    .auth-login-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0;
        overflow: visible;
        background: transparent;
    }

    .auth-login-panel::before,
    .auth-login-panel::after {
        display: none;
    }

    .auth-login-card--premium.auth-card {
        width: 100%;
        max-width: none;
        margin: 0;
        background: #ffffff;
        border-radius: 28px 28px 22px 22px;
        overflow: visible;
        box-shadow:
            0 -10px 40px rgba(6, 26, 49, 0.18),
            0 24px 52px rgba(6, 26, 49, 0.16),
            0 0 0 1px rgba(255, 255, 255, 0.95) inset;
        border: 1px solid rgba(0, 136, 168, 0.22);
    }

    .auth-login-page .auth-login-register {
        margin-top: 0.15rem;
        padding-bottom: 0.35rem;
    }

    .auth-login-create-inline {
        display: inline-block;
        margin-top: 0.35rem;
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--d2kss-teal, #0088a8);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .auth-login-create-inline:hover,
    .auth-login-create-inline:focus-visible {
        color: var(--d2kss-navy, #0a2540);
    }

    .auth-login-page--register .auth-login-card-body {
        padding-bottom: 1rem;
    }

    .auth-login-mobile-features {
        display: none;
    }

    .auth-login-card-header {
        border-radius: 28px 28px 0 0;
    }

    .auth-login-card-body {
        padding-bottom: 0.85rem;
    }

    .auth-login-card::before {
        display: none;
    }

    .auth-login-page .auth-card-body {
        padding: 0.65rem 1.15rem 0.85rem;
    }

    .auth-login-page .auth-label {
        margin-bottom: 0.32rem;
        font-size: 0.74rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: none;
        color: var(--d2kss-navy, #0a2540);
    }

    .auth-page-d2kss:has(.auth-login-page) .auth-field .form-control,
    .auth-page-d2kss:has(.auth-login-page) .auth-field .auth-input {
        min-height: 46px !important;
        height: 46px !important;
        font-size: 16px !important;
        padding-top: 0.45rem !important;
        padding-bottom: 0.45rem !important;
        border-radius: 12px !important;
        border: 1.5px solid rgba(0, 136, 168, 0.22) !important;
        background: #f8fbfd !important;
        box-shadow: 0 1px 2px rgba(6, 26, 49, 0.04) inset;
    }

    .auth-page-d2kss:has(.auth-login-page) .auth-field .form-control:focus,
    .auth-page-d2kss:has(.auth-login-page) .auth-field .auth-input:focus {
        border-color: var(--d2kss-teal, #0088a8) !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(0, 136, 168, 0.15) !important;
    }

    .auth-page-d2kss:has(.auth-login-page) .auth-field .field-icon {
        color: var(--d2kss-teal, #0088a8) !important;
    }

    .auth-login-submit.auth-btn {
        min-height: 48px;
        padding: 0.62rem 1rem;
        font-size: 0.92rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        border-radius: 12px;
        box-shadow:
            0 10px 28px rgba(0, 136, 168, 0.35),
            0 2px 0 rgba(255, 255, 255, 0.15) inset;
    }

    .auth-divider--soft {
        margin: 0.5rem 0 0.45rem;
    }

    .auth-divider--soft::before,
    .auth-divider--soft::after {
        background: linear-gradient(90deg, transparent, rgba(0, 136, 168, 0.2), transparent);
    }

    .auth-login-register {
        display: block;
        text-align: center;
    }

    .auth-login-register-hint {
        margin: 0 0 0.45rem;
        font-size: 0.78rem;
        font-weight: 500;
        color: var(--d2kss-slate-muted, #64748b);
        line-height: 1.35;
    }

    .auth-login-register-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        width: 100%;
        min-height: 46px;
        padding: 0.55rem 1rem;
        border-radius: 12px;
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--d2kss-navy, #0a2540);
        background: linear-gradient(180deg, #ffffff 0%, #f0f7fa 100%);
        border: 1.5px solid rgba(0, 136, 168, 0.35);
        box-shadow: 0 4px 14px rgba(6, 26, 49, 0.06);
        transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .auth-login-register-btn:hover,
    .auth-login-register-btn:focus-visible {
        color: var(--d2kss-teal, #0088a8);
        border-color: rgba(0, 136, 168, 0.55);
        background: #fff;
        transform: translateY(-1px);
    }

    .auth-login-register-btn i {
        font-size: 1rem;
        color: var(--d2kss-teal, #0088a8);
    }

    .auth-login-mobile-footer {
        display: block;
        text-align: center;
        margin-top: auto;
        padding: 1rem 0.5rem 0.25rem;
    }

    .auth-login-mobile-om {
        display: block;
        font-size: 1.25rem;
        line-height: 1;
        color: var(--d2kss-teal, #0088a8);
        opacity: 0.75;
        margin-bottom: 0.25rem;
    }

    .auth-login-mobile-trust {
        margin: 0;
        font-size: 0.72rem;
        font-weight: 600;
        color: rgba(6, 26, 49, 0.72);
        letter-spacing: 0.02em;
    }

    .auth-login-mobile-place {
        margin: 0.15rem 0 0;
        font-size: 0.66rem;
        color: rgba(6, 26, 49, 0.5);
    }

    .auth-login-desktop-only {
        display: none !important;
    }

    .auth-login-mobile-only.auth-login-mobile-hero,
    .auth-login-mobile-hero {
        display: block;
    }

    .auth-login-mobile-sheet {
        display: flex;
    }

    .auth-login-mobile-only.auth-login-mobile-footer {
        display: block;
    }

    .auth-login-page .auth-login-card-header::after,
    .auth-login-page .auth-login-card-top::after {
        display: none;
    }

    .auth-login-page .auth-field-group {
        margin-bottom: 0.5rem !important;
    }

    .auth-login-page .auth-footer-home--desktop {
        display: none;
    }

    .auth-login-page .auth-login-forgot-row {
        margin-bottom: 0.4rem;
    }

    /* Legacy rules below — hero hidden on mobile */
    .auth-login-hero-copy {
        display: none !important;
    }

    .auth-login-card-top--mobile {
        display: none;
    }

    .auth-login-page .auth-login-card-top .auth-logo,
    .auth-login-page .auth-card-emblem-row {
        display: none;
    }

    .auth-page.theme-ayyappa:not(:has(.auth-login-page)) .auth-field .form-control,
    .auth-page.theme-ayyappa:not(:has(.auth-login-page)) .auth-field .auth-input,
    .auth-page-d2kss:not(:has(.auth-login-page)) .auth-field .form-control,
    .auth-page-d2kss:not(:has(.auth-login-page)) .auth-field .auth-input {
        min-height: 48px !important;
        height: 48px !important;
        font-size: 16px !important;
    }

    @media (max-height: 820px) {
        .auth-login-mobile-hero {
            min-height: 108px;
        }

        .auth-login-page--register .auth-login-mobile-hero {
            min-height: 64px;
        }

        .auth-login-page--register .auth-login-mobile-hero-logo {
            width: 36px;
            height: 36px;
        }

        .auth-login-page--register .auth-login-mobile-hero-title {
            font-size: 0.72rem;
        }

        .auth-login-page--register .auth-login-card-header-inner {
            padding: 0.5rem 0.9rem 0.25rem;
        }

        .auth-login-page--register .auth-temple-name {
            font-size: 0.98rem;
        }

        .auth-login-page--register .auth-page-title {
            display: none;
        }

        .auth-login-page--register .auth-field-group {
            margin-bottom: 0.32rem !important;
        }

        .auth-login-page--register .auth-card-body,
        .auth-login-page--register .auth-login-card-body {
            padding: 0.35rem 0.9rem 0.9rem !important;
        }

        .auth-login-mobile-hero-logo {
            width: 44px;
            height: 44px;
        }

        .auth-login-mobile-hero-title {
            font-size: 0.84rem;
        }

        .auth-login-mobile-hero-tagline {
            margin-bottom: 0.2rem;
            font-size: 0.64rem;
        }

        .auth-login-card-header .auth-welcome-badge {
            display: none;
        }

        .auth-login-page .auth-temple-name {
            font-size: 1rem;
        }

        .auth-login-page .auth-page-title {
            font-size: 0.8rem;
        }

        .auth-login-page .auth-divider {
            margin: 0.2rem 0;
        }

        .auth-login-submit.auth-btn,
        .auth-login-register-btn {
            min-height: 44px;
            padding: 0.5rem 1rem;
        }

        .auth-login-mobile-footer {
            padding-top: 0.55rem;
        }
    }
}

@media (max-width: 380px) {
    .auth-card-body {
        padding: 1.1rem 1.15rem 1.35rem;
    }

    .auth-login-page--register .auth-card-body,
    .auth-login-page--register .auth-login-card-body {
        padding: 0.4rem 0.85rem 0.95rem !important;
    }

    .auth-field .form-control {
        font-size: 16px;
    }
}

/* ── Change password + password status ── */
.auth-login-page--change-password {
    max-height: min(720px, calc(100dvh - 5rem));
    min-height: min(580px, calc(100dvh - 5rem));
}

.auth-login-page--change-password .auth-login-panel {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--d2kss-navy-muted, #5c6578);
}

.auth-field-hint--login {
    margin-top: 0.45rem;
}

.auth-password-status {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-password-status > .bi,
.auth-password-status > i {
    flex-shrink: 0;
    font-size: 1.05rem;
    margin-top: 0.1rem;
}

.auth-password-status-copy {
    min-width: 0;
}

.auth-password-status-title {
    margin: 0;
    font-weight: 700;
    font-size: 0.86rem;
}

.auth-password-status-detail {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    opacity: 0.92;
}

.auth-password-status--info {
    background: rgba(0, 136, 168, 0.08);
    border-color: rgba(0, 136, 168, 0.22);
    color: #0a4d5c;
}

.auth-password-status--info > .bi,
.auth-password-status--info > i {
    color: var(--d2kss-teal, #0088a8);
}

.auth-password-status--success {
    background: rgba(45, 138, 95, 0.1);
    border-color: rgba(45, 138, 95, 0.25);
    color: #1b4332;
}

.auth-password-status--success > .bi,
.auth-password-status--success > i {
    color: #2d6a4f;
}

.auth-password-status--warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #78350f;
}

.auth-password-status--warning > .bi,
.auth-password-status--warning > i {
    color: #d97706;
}

.auth-password-status--loading {
    background: rgba(107, 114, 128, 0.08);
    border-color: rgba(107, 114, 128, 0.18);
    color: #4b5563;
    align-items: center;
}

.auth-login-register-btn--muted {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 136, 168, 0.22);
    color: var(--d2kss-navy, #0a2540);
    box-shadow: none;
}

.auth-login-register-btn--muted:hover,
.auth-login-register-btn--muted:focus-visible {
    background: #fff;
    border-color: rgba(0, 136, 168, 0.4);
    color: var(--d2kss-teal, #0088a8);
}

@media (max-width: 900px) {
    .auth-login-page--change-password {
        max-height: none;
        min-height: 0;
    }

    .auth-login-page--change-password .auth-login-mobile-sheet {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    }

    .auth-password-status {
        margin-bottom: 0.75rem;
    }
}

@media (max-height: 740px) {
    .auth-login-page--change-password .auth-field-hint {
        font-size: 0.72rem;
    }
}

/* ── Mobile fingerprint sign-in ── */
.auth-biometric-btn {
    width: 100%;
    margin-bottom: 0.15rem;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--d2kss-navy, #0a2540);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 253, 255, 0.96) 100%);
    border: 1.5px solid rgba(0, 136, 168, 0.45);
    box-shadow: 0 8px 24px rgba(0, 136, 168, 0.12);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-biometric-btn:hover:not(:disabled),
.auth-biometric-btn:focus-visible:not(:disabled) {
    color: var(--d2kss-teal, #0088a8);
    border-color: rgba(0, 136, 168, 0.65);
    box-shadow: 0 10px 28px rgba(0, 136, 168, 0.18);
    transform: translateY(-1px);
}

.auth-biometric-btn:disabled {
    opacity: 0.72;
}

.auth-biometric-btn .bi-fingerprint {
    font-size: 1.25rem;
    line-height: 1;
}

.auth-biometric-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.35rem 0 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(0, 136, 168, 0.06);
    border: 1px solid rgba(0, 136, 168, 0.14);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--d2kss-navy-muted, #4b5563);
    cursor: pointer;
    user-select: none;
}

.auth-biometric-opt input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--d2kss-teal, #0088a8);
}
