main {
    display: contents;
    margin-top: -25px;
}

.auth-page {
    background: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.auth-page::before {
    background: radial-gradient(circle at 20% 30%, rgba(79, 41, 240, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(160, 51, 255, 0.07) 0%, transparent 45%);
    animation: subtlePulse 18s ease-in-out infinite alternate;
}

.auth-page::after {
    background: 
        radial-gradient(circle 80px at 15% 25%, rgba(79, 41, 240, 0.12), transparent 70%),
        radial-gradient(circle 120px at 85% 75%, rgba(160, 51, 255, 0.10), transparent 70%),
        radial-gradient(circle 100px at 40% 85%, rgba(79, 41, 240, 0.09), transparent 70%);
    animation: floatBubbles 25s linear infinite;
    opacity: 0.6;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-white);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(29, 14, 79, 0.05);
    border: 1px solid var(--accent-color);
}

.auth-welcome {
    max-width: 375px;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 35px 0;
    text-align: center;
    color: var(--primary-color);
}

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

.auth-submit {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
}

.auth-legal {
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-legal a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    margin-right: -2px;
    margin-bottom: -1px;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}