:root {
    --bdc-primary: #1171ef;
    --bdc-secondary: #0dcaf0;
    --bdc-dark: #0f172a;
    --bdc-gray: #e8f0ff;
}

.page-auth {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(17,113,239,.55), rgba(15,23,42,.95)), #0f172a;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
}

.auth-main {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 0 24px;
    margin: 0 auto;
}

.auth-box {
    background: rgba(255, 255, 255, .98);
    padding: 36px 32px;
    border-radius: 24px;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(17,113,239,.15);
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,113,239,.12), rgba(13,202,240,.1));
    z-index: 0;
}

.auth-box h1,
.auth-box p,
.auth-box form {
    position: relative;
    z-index: 1;
}

.auth-box h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bdc-primary);
    margin-bottom: 0.25rem;
}

.auth-box .lead {
    color: #6b7280;
}

.auth-box .form-control {
    border-radius: 12px;
    border-color: rgba(15,23,42,.1);
}

.auth-box .input-group .btn {
    border-color: rgba(15,23,42,.1);
    border-radius: 12px;
}

.auth-box .btn-primary {
    border: none;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--bdc-primary), var(--bdc-secondary));
    font-weight: 600;
    transition: transform .2s ease;
}

.auth-box .btn-primary:hover {
    transform: translateY(-1px);
}

.auth-box a {
    color: var(--bdc-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-box a:hover {
    text-decoration: underline;
}

.auth-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.auth-step-indicator {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    background: rgba(17,113,239,0.08);
    color: rgba(15,23,42,0.65);
    border: 1px dashed rgba(17,113,239,0.2);
}

.auth-step-indicator.is-active {
    background: rgba(17,113,239,0.15);
    border-style: solid;
    color: var(--bdc-primary);
    font-weight: 600;
}

.auth-step {
    display: none;
    animation: fadeIn 0.25s ease;
}

.auth-step.is-active {
    display: block;
}

.auth-step-nav .btn {
    min-width: 140px;
}

.auth-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-legal {
    line-height: 1.4;
}

.alert {
    font-size: .9rem;
    border-radius: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .auth-main {
        padding: 3rem 1rem;
        align-items: flex-start;
    }
    .auth-box {
        padding: 28px 24px;
        border-radius: 20px;
        box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 0 8px;
    }
    .auth-box {
        padding: 24px 20px;
    }
    .auth-box h1 {
        font-size: 1.65rem;
    }
}
