.auth-page {
    position: relative;
    max-width: 1340px;
    margin: 0 auto;
    padding: 1.25rem 0 2.5rem;
    color: #11203f;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
}

.auth-page::before {
    width: 30rem;
    height: 30rem;
    top: -4rem;
    left: -7rem;
    background: radial-gradient(circle, rgba(79, 114, 255, 0.16), rgba(79, 114, 255, 0));
}

.auth-page::after {
    width: 24rem;
    height: 24rem;
    right: -5rem;
    bottom: -3rem;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.18), rgba(0, 198, 255, 0));
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(23rem, 0.95fr);
    gap: 1.35rem;
    align-items: stretch;
}

.auth-panel,
.auth-form-panel {
    border: 1px solid rgba(81, 109, 170, 0.14);
    border-radius: 2rem;
    box-shadow: 0 22px 60px rgba(88, 116, 173, 0.12);
    overflow: hidden;
}

.auth-panel {
    padding: 2.2rem;
    background:
        radial-gradient(circle at 18% 16%, rgba(79, 114, 255, 0.18), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(0, 198, 255, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 255, 0.96));
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    background: rgba(79, 114, 255, 0.12);
    color: #4f72ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-brand {
    margin-top: 1.3rem;
    max-width: 38rem;
}

.auth-brand h1 {
    margin: 0 0 1rem;
    color: #11203f;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.auth-brand p {
    margin: 0;
    color: #5e7297;
    font-size: 1rem;
    line-height: 1.8;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.auth-feature-card,
.auth-process-card,
.auth-mini-card {
    border-radius: 1.35rem;
    border: 1px solid rgba(81, 109, 170, 0.12);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 40px rgba(88, 116, 173, 0.08);
}

.auth-feature-card {
    padding: 1rem;
}

.auth-feature-icon {
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(79, 114, 255, 0.18), rgba(0, 198, 255, 0.16));
    color: #4f72ff;
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.auth-feature-card h2,
.auth-feature-card h3,
.auth-process-card h3,
.auth-mini-card h3 {
    margin: 0 0 0.45rem;
    color: #11203f;
    font-size: 1rem;
}

.auth-feature-card p,
.auth-process-card p,
.auth-mini-card p {
    margin: 0;
    color: #5e7297;
    line-height: 1.65;
    font-size: 0.92rem;
}

.auth-process {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.auth-process-card {
    padding: 1.15rem;
}

.auth-process-list {
    display: grid;
    gap: 0.85rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.auth-process-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
}

.auth-step-badge {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(79, 114, 255, 0.12);
    color: #4f72ff;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-mini-stack {
    display: grid;
    gap: 1rem;
}

.auth-mini-card {
    padding: 1rem;
}

.auth-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.3rem;
}

.auth-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(81, 109, 170, 0.16);
    background: rgba(255, 255, 255, 0.75);
    color: #11203f;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-link-pill:hover {
    color: #11203f;
    transform: translateY(-1px);
    border-color: rgba(79, 114, 255, 0.28);
    box-shadow: 0 14px 28px rgba(88, 116, 173, 0.1);
}

.auth-form-panel {
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
}

.auth-form-top {
    margin-bottom: 1.35rem;
}

.auth-form-top h2 {
    margin: 0.55rem 0 0.55rem;
    color: #11203f;
    font-size: 1.9rem;
    letter-spacing: -0.04em;
}

.auth-form-top p {
    margin: 0;
    color: #5e7297;
    line-height: 1.7;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(79, 114, 255, 0.1);
    color: #4f72ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: 0.45rem;
}

.auth-label {
    color: #11203f;
    font-weight: 600;
}

.auth-input {
    min-height: 3.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(81, 109, 170, 0.18);
    background: rgba(247, 250, 255, 0.88);
    box-shadow: none;
}

.auth-input:focus {
    border-color: #4f72ff;
    box-shadow: 0 0 0 0.25rem rgba(79, 114, 255, 0.14);
}

.auth-help {
    color: #7b8cab;
    font-size: 0.85rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #5e7297;
}

.auth-checkbox .form-check-input {
    margin-top: 0;
}

.auth-submit {
    min-height: 3.2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f72ff, #00c6ff);
    box-shadow: 0 18px 36px rgba(79, 114, 255, 0.2);
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #4366f2, #00b7ef);
}

.auth-form-divider {
    position: relative;
    margin: 0.7rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(81, 109, 170, 0.14);
}

.auth-form-footer {
    color: #5e7297;
    text-align: center;
}

.auth-form-footer a {
    color: #4f72ff;
    font-weight: 600;
    text-decoration: none;
}

.auth-form-footer a:hover {
    color: #3f63f0;
}

.auth-inline-note {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: rgba(255, 248, 231, 0.92);
    color: #7a5a00;
}

.auth-inline-note strong {
    color: #5c4300;
}

.auth-status-modal .modal-content {
    border: 1px solid rgba(81, 109, 170, 0.12);
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at 16% 16%, rgba(79, 114, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 255, 0.96));
    box-shadow: 0 28px 60px rgba(88, 116, 173, 0.18);
}

.auth-status-modal .modal-body {
    padding: 2rem;
}

.auth-status-icon {
    display: inline-flex;
    width: 4.25rem;
    height: 4.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    background: rgba(255, 196, 0, 0.14);
    color: #f59e0b;
    font-size: 2rem;
}

.auth-status-panel {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(81, 109, 170, 0.12);
}

.auth-status-timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.auth-status-box {
    padding: 0.7rem 0.45rem;
    border-radius: 0.95rem;
    background: rgba(247, 250, 255, 0.92);
    border: 1px solid rgba(81, 109, 170, 0.12);
}

.auth-status-value {
    display: block;
    color: #4f72ff;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.auth-status-unit {
    display: block;
    margin-top: 0.35rem;
    color: #7b8cab;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-status-date {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #11203f;
    font-weight: 600;
}

[data-theme="dark"] .auth-page {
    color: #f8fafc;
}

[data-theme="dark"] .auth-panel,
[data-theme="dark"] .auth-form-panel,
[data-theme="dark"] .auth-feature-card,
[data-theme="dark"] .auth-process-card,
[data-theme="dark"] .auth-mini-card,
[data-theme="dark"] .auth-status-modal .modal-content,
[data-theme="dark"] .auth-status-panel,
[data-theme="dark"] .auth-status-box {
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 26px 70px rgba(2, 8, 23, 0.32);
}

[data-theme="dark"] .auth-panel {
    background:
        radial-gradient(circle at 18% 16%, rgba(79, 114, 255, 0.2), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(0, 198, 255, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(17, 31, 61, 0.9));
}

[data-theme="dark"] .auth-form-panel,
[data-theme="dark"] .auth-feature-card,
[data-theme="dark"] .auth-process-card,
[data-theme="dark"] .auth-mini-card,
[data-theme="dark"] .auth-status-modal .modal-content,
[data-theme="dark"] .auth-status-panel,
[data-theme="dark"] .auth-status-box {
    background: rgba(15, 23, 42, 0.82);
}

[data-theme="dark"] .auth-brand h1,
[data-theme="dark"] .auth-feature-card h2,
[data-theme="dark"] .auth-feature-card h3,
[data-theme="dark"] .auth-process-card h3,
[data-theme="dark"] .auth-mini-card h3,
[data-theme="dark"] .auth-form-top h2,
[data-theme="dark"] .auth-label,
[data-theme="dark"] .auth-status-date {
    color: #f8fafc;
}

[data-theme="dark"] .auth-brand p,
[data-theme="dark"] .auth-feature-card p,
[data-theme="dark"] .auth-process-card p,
[data-theme="dark"] .auth-mini-card p,
[data-theme="dark"] .auth-form-top p,
[data-theme="dark"] .auth-checkbox,
[data-theme="dark"] .auth-form-footer,
[data-theme="dark"] .auth-help,
[data-theme="dark"] .auth-status-unit {
    color: #cbd5e1;
}

[data-theme="dark"] .auth-input {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
}

[data-theme="dark"] .auth-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 114, 255, 0.18);
}

[data-theme="dark"] .auth-link-pill {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
}

[data-theme="dark"] .auth-link-pill:hover {
    color: #f8fafc;
}

[data-theme="dark"] .auth-inline-note {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(78, 59, 10, 0.36);
    color: #fde68a;
}

[data-theme="dark"] .auth-inline-note strong {
    color: #fef3c7;
}

@media (max-width: 1199px) {
    .auth-shell,
    .auth-process {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .auth-panel,
    .auth-form-panel {
        border-radius: 1.5rem;
    }

    .auth-panel,
    .auth-form-panel,
    .auth-status-modal .modal-body {
        padding: 1.3rem;
    }

    .auth-feature-grid {
        grid-template-columns: 1fr;
    }

    .auth-status-timer {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Single Panel layout overrides */
.auth-page-single {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
    box-sizing: border-box;
}

.auth-shell-single {
    width: 100%;
    display: block;
}

.auth-shell-single .auth-form-panel {
    width: 100%;
    padding: 2.5rem 2.25rem;
    border-radius: 2rem;
    box-sizing: border-box;
}

.auth-brand-logo a {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-brand-logo a:hover {
    transform: scale(1.03);
}

/* Symmetrical forms adjustments inside single shells */
.auth-shell-single .auth-form-top h2 {
    font-size: 2rem;
}

/* Adaptive styles for tablet and mobile viewports */
@media (max-width: 767px) {
    .auth-page-single {
        padding: 1.5rem 0.5rem 2.5rem;
    }

    .auth-shell-single .auth-form-panel {
        padding: 2rem 1.5rem;
        border-radius: 1.75rem;
    }

    .auth-shell-single .auth-form-top h2 {
        font-size: 1.75rem;
    }

    /* Disable background glows on mobile to prevent overflow / horizontal scrolling bugs */
    .auth-page::before,
    .auth-page::after {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .auth-page-single {
        padding: 1rem 0 2rem;
    }

    .auth-shell-single .auth-form-panel {
        padding: 1.75rem 1.25rem;
        border-radius: 1.5rem;
    }

    .auth-shell-single .auth-form-top h2 {
        font-size: 1.55rem;
    }
    
    .auth-brand-logo {
        margin-bottom: 1.25rem !important;
    }
}

@media (max-width: 375px) {
    .auth-page-single {
        padding: 0.5rem 0 1.5rem;
    }

    .auth-shell-single .auth-form-panel {
        padding: 1.5rem 1rem;
        border-radius: 1.25rem;
    }

    .auth-shell-single .auth-form-top h2 {
        font-size: 1.35rem;
    }

    .auth-shell-single .auth-form-top p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .auth-brand-logo .elevex-logo {
        width: 1.85rem;
        height: 1.85rem;
    }

    .auth-brand-logo .elevex-logo-text {
        font-size: 1.35rem !important;
    }

    .auth-pill {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }

    .auth-label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .auth-input {
        min-height: 2.8rem;
        border-radius: 0.75rem;
        font-size: 0.88rem;
        padding: 0.5rem 0.75rem;
    }

    .auth-submit {
        min-height: 2.8rem;
        font-size: 0.92rem;
    }

    .auth-checkbox {
        font-size: 0.85rem;
    }

    /* Scale modal timer layout on very small screens */
    .auth-status-box {
        padding: 0.5rem 0.25rem;
        border-radius: 0.75rem;
    }

    .auth-status-value {
        font-size: 1.15rem;
    }

    .auth-status-unit {
        font-size: 0.6rem;
    }
}
