body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(47,111,237,0.16), transparent 34%),
        linear-gradient(180deg, #f4f6f8 0%, #eef3f8 100%);
    color: #101828;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dfe7f4;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(14, 30, 64, 0.12);
    padding: 28px;
}

.auth-kicker {
    color: #2f6fed;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
}

.auth-lead {
    color: #667085;
    line-height: 1.5;
    margin: 0 0 22px;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form p {
    margin: 0;
}

.auth-form label {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-form input,
.auth-form select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid #d7e1ef;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 15px;
    background: #fff;
}

.helptext {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
}

ul.errorlist {
    margin: 0 0 6px;
    padding: 10px 12px;
    list-style: none;
    border-radius: 12px;
    background: #fff2f2;
    color: #a61b1b;
    font-size: 13px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 14px;
    background: #edf4ff;
    border: 1px solid #cfe0ff;
    color: #1d4fb8;
    margin-bottom: 14px;
}

.auth-alert.error {
    background: #fff2f2;
    border-color: #f3c2c2;
    color: #a61b1b;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    background: #2f6fed;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
}

.btn.secondary {
    background: #eef4ff;
    color: #2f6fed;
}

.auth-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: #667085;
}

.auth-links a {
    color: #2f6fed;
    font-weight: 800;
    text-decoration: none;
}

.success-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #effaf3;
    color: #138a5b;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }
}

.auth-form p:has(input[name="captcha_answer"]) {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #d9e6ff;
}

.auth-form p:has(input[name="captcha_answer"]) label {
    color: #1d4fb8;
}
