.auth-page {

    min-height: 100vh;

    padding:
        calc(var(--header-height) + 40px)
        24px
        80px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,0.06),
            transparent 25%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(255,255,255,0.04),
            transparent 25%
        ),
        #09090a;
}

.auth-card {

    width: 100%;
    max-width: 520px;

    padding: 42px;

    border-radius: 34px;

    background: var(--surface);

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);
}

.auth-header {

    margin-bottom: 34px;
}

.auth-badge {

    display: inline-flex;

    padding: 10px 16px;

    border-radius: 999px;

    background:
        rgba(255,255,255,0.08);

    color: var(--text-soft);

    letter-spacing: 0.08em;

    text-transform: uppercase;

    font-size: 0.82rem;
}

.auth-title {

    margin:
        24px 0 12px;

    font-size:
        clamp(
            2.4rem,
            5vw,
            4rem
        );

    line-height: 0.95;

    letter-spacing: -0.06em;
}

.auth-description {

    margin: 0;

    color: var(--text-soft);

    line-height: 1.7;
}

.auth-form {

    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-footer {

    margin-top: 28px;

    text-align: center;

    color: var(--text-soft);
}

.auth-footer a {

    color: white;

    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .auth-page {

        padding:
            calc(var(--header-height) + 20px)
            20px
            60px;
    }

    .auth-card {

        padding: 26px;
    }
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form .form-group label {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.auth-form .form-group input {
    width: 100%;
    border: 1px solid var(--border);
    outline: none;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface-2);
    color: var(--text);
    transition: var(--transition);
}

.auth-form .form-group input:focus {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
}

.auth-form .form-group input::placeholder {
    color: var(--text-soft);
}

.auth-form .btn {
    margin-top: 8px;
}

.auth-footer {
    line-height: 1.6;
}

/*
|--------------------------------------------------------------------------
| ACCOUNT TYPE
|--------------------------------------------------------------------------
*/

.account-type-selector {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;
}

.account-type-card {

    position: relative;

    cursor: pointer;
}

.account-type-card input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.account-type-content {

    padding: 22px;

    border-radius: 24px;

    border:
        1px solid var(--border);

    background:
        var(--surface-2);

    transition: var(--transition);

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-type-content i {

    font-size: 1.4rem;

    color: white;
}

.account-type-content strong {

    font-size: 1rem;
}

.account-type-content span {

    color: var(--text-soft);

    line-height: 1.5;

    font-size: 0.92rem;
}

.account-type-card:hover
.account-type-content {

    border-color:
        rgba(255,255,255,0.18);

    transform:
        translateY(-2px);
}

.account-type-card input:checked
+ .account-type-content {

    border-color:
        rgba(255,255,255,0.28);

    background:
        rgba(255,255,255,0.06);

    box-shadow:
        0 0 0 1px
        rgba(255,255,255,0.08);
}

@media (max-width: 640px) {

    .account-type-selector {

        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| TERMS
|--------------------------------------------------------------------------
*/

.auth-checkbox {

    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: -4px;

    color: var(--text-soft);

    line-height: 1.6;

    font-size: 0.94rem;
}

.auth-checkbox input {

    margin-top: 3px;

    accent-color: white;
}

.auth-checkbox a {

    color: white;

    font-weight: 600;

    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| AUTH LINKS
|--------------------------------------------------------------------------
*/

.auth-links {

    margin-top: 4px;
}

.auth-links a {

    color: var(--text-soft);

    text-decoration: none;

    font-size: 0.94rem;

    transition: var(--transition);
}

.auth-links a:hover {

    color: white;
}

/*
|--------------------------------------------------------------------------
| AUTH SHEET
|--------------------------------------------------------------------------
*/

.auth-link-button {

    background: transparent;

    border: 0;

    padding: 0;

    color: var(--text-soft);

    cursor: pointer;

    font-size: 0.94rem;

    transition: var(--transition);
}

.auth-link-button:hover {

    color: white;
}

.auth-sheet {

    position: fixed;

    top: 50%;
    left: 50%;

    width: 100%;
    max-width: 520px;

    padding: 42px;

    border-radius: 34px;

    background: var(--surface);

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);

    transform:
        translate(-50%, -50%)
        scale(0.96);

    opacity: 0;

    pointer-events: none;

    z-index: 3000;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.auth-sheet.active {

    opacity: 1;

    pointer-events: auto;

    transform:
        translate(-50%, -50%)
        scale(1);
}

@media (max-width: 768px) {

    .auth-sheet {

        width:
            calc(100% - 32px);

        padding: 28px;
    }
}

.auth-sheet-close {

    width: 44px;
    height: 44px;

    border-radius: 14px;

    border:
        1px solid var(--border);

    background:
        rgba(255,255,255,0.04);

    color: white;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: var(--transition);
}

.auth-sheet-close:hover {

    background:
        rgba(255,255,255,0.08);
}

#forgotPasswordOverlay {

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,0.55);

    backdrop-filter: blur(12px);

    opacity: 0;

    pointer-events: none;

    z-index: 2500;

    transition: opacity 0.25s ease;
}

#forgotPasswordOverlay.active {

    opacity: 1;

    pointer-events: auto;
}

.side-panel-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}