.auth-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 79, 154, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(99, 102, 241, 0.18),
            transparent 32%
        ),
        var(--bg);
}

.auth-page::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.09);
    filter: blur(90px);
    top: -170px;
    right: -120px;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}

.auth-card {
    padding: 34px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(17, 19, 26, 0.88);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.auth-intro {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.6;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 650;
}

.field input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    color: var(--text);
    background: #0c0e14;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
}

.field input:focus {
    border-color: rgba(168, 85, 247, 0.75);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.auth-submit {
    width: 100%;
    margin-top: 5px;
}

.auth-links {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.auth-links a {
    color: #d8b4fe;
    text-decoration: none;
}

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

.auth-message {
    display: none;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.auth-message.error {
    display: block;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.auth-message.success {
    display: block;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
    color: #6f7280;
    font-size: 12px;
}

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

    .auth-card {
        padding: 26px 22px;
    }
}
