/* Premium Auth Design - Fintech Elite Style */

.auth-home-btn {
    position: fixed;
    top: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.auth-home-btn:hover {
    transform: translateX(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    background: var(--gray-50);
}

.auth-home-btn i {
    color: var(--primary);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    padding: var(--sp-6);
    background: radial-gradient(circle at 0% 0%, #F8FAFF 0%, #F1F5F9 100%);
    font-family: 'Lato', sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.04), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    padding: var(--sp-12);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--sp-8);
}

.auth-logo-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 22px;
    box-shadow: 0 4px 6px -1px rgba(79, 106, 246, 0.3);
}

.auth-header h1,
.auth-header .h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
    color: #0F172A;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: var(--sp-8);
}

/* Dual Column for Registration */
.auth-container-wide {
    display: grid;
    grid-template-columns: 460px 1fr;
    max-width: 1100px;
    width: 100%;
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.auth-sidebar {
    background-color: #0F172A;
    color: white;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(40px);
}

.auth-sidebar h2 {
    color: white;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.auth-sidebar p {
    font-size: 18px;
    color: #94A3B8;
    margin-bottom: 48px;
}

.auth-check-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-check-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 15px;
    color: #CBD5E1;
}

.auth-check-icon {
    min-width: 24px;
    height: 24px;
    background: rgba(79, 106, 246, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

.auth-right {
    padding: 64px;
    overflow-y: auto;
}

/* Plan Selection Cards */
.register-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.register-plan-opt {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #F9FAFB;
}

.register-plan-opt:hover {
    border-color: var(--primary);
    background: white;
}

.register-plan-opt.active {
    border-color: var(--primary);
    background: var(--sidebar-active-bg);
    box-shadow: 0 0 0 4px rgba(79, 106, 246, 0.1);
}

.register-plan-name {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.register-plan-opt.active .register-plan-name {
    color: var(--primary);
}

.register-plan-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.auth-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.2s;
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

[data-theme='dark'] .auth-page {
    background: radial-gradient(circle at 0% 0%, #111827 0%, #0b0e14 100%);
}

[data-theme='dark'] .auth-container-wide,
[data-theme='dark'] .auth-card {
    background: #11141d;
    border-color: #1f2937;
}

[data-theme='dark'] .auth-right {
    background: #11141d;
}

[data-theme='dark'] .auth-home-btn {
    background: #11141d;
    border-color: #334155;
    color: #f8fafc !important;
}

[data-theme='dark'] .auth-home-btn:hover {
    background: #1f2937;
}

[data-theme='dark'] .auth-header h1,
[data-theme='dark'] .auth-header .h1 {
    color: #f8fafc;
}

[data-theme='dark'] .auth-header p,
[data-theme='dark'] .auth-footer p {
    color: #94a3b8;
}

[data-theme='dark'] .auth-footer {
    border-top-color: #1f2937;
}

[data-theme='dark'] .register-plan-opt {
    background: #0f1522;
    border-color: #334155;
}

[data-theme='dark'] .register-plan-opt:hover {
    border-color: var(--primary);
    background: #111827;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container-wide {
        grid-template-columns: 1fr;
        border-radius: 16px;
        max-width: 600px;
    }

    .auth-sidebar {
        display: none;
    }

    .auth-right {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 14px;
    }

    .auth-container-wide {
        border-radius: 14px;
        max-width: 100%;
    }

    .auth-right {
        padding: 86px 18px 24px;
    }

    .auth-home-btn {
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        left: 12px;
        z-index: 1100;
    }

    .register-plan-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .register-plan-opt {
        padding: 14px;
        border-radius: 12px;
    }

    .register-plan-name {
        font-size: 12px;
    }

    .register-plan-price {
        font-size: 24px;
        line-height: 1;
        margin-top: 2px;
    }

    .auth-right .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .auth-header {
        margin-bottom: 24px;
    }

    .auth-header .h1,
    .auth-header h1,
    .auth-header h2 {
        font-size: 2.2rem;
        line-height: 1.05;
    }

    .auth-footer {
        margin-top: 24px;
        padding-top: 18px;
    }
}

@media (max-width: 420px) {
    .auth-right {
        padding: 84px 14px 20px;
    }

    .auth-home-btn {
        font-size: 12px;
        padding: 9px 12px;
    }

    .register-plan-opt .small {
        font-size: 12px;
        line-height: 1.4;
    }
}