:root {
    --ds-blue: #2F6DF6;
    --ds-blue-dark: #263FF2;
    --ds-yellow: #FFD400;
    --ds-orange: #F6A934;
    --ds-text: #172033;
    --ds-muted: #6B7280;
    --ds-border: #E5E7EB;
    --ds-bg: #f7f8fb;
    --ds-red: #DC2626;
    --ds-green: #059669;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Baloo 2', system-ui, sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 212, 0, .28), transparent 30%),
        radial-gradient(circle at 90% 12%, rgba(47, 109, 246, .24), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7f9ff 45%, #eef4ff 100%);
    color: var(--ds-text);
}

input,
button {
    font-family: 'Baloo 2', system-ui, sans-serif;
}

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

.auth-card {
    width: min(100%, 460px);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(47, 109, 246, .16);
    padding: 30px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.auth-logo img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 18px;
}

.auth-title {
    margin: 0 0 8px;
    text-align: center;
    color: var(--ds-blue-dark);
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.auth-subtitle {
    margin: 0 0 22px;
    text-align: center;
    color: var(--ds-muted);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.auth-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ECFDF5;
    color: #047857;
    font-weight: 800;
}

.auth-error {
    margin-top: 7px;
    color: var(--ds-red);
    font-size: 13px;
    font-weight: 800;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 900;
    color: var(--ds-text);
}

.auth-field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--ds-border);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 16px;
    background: #fff;
    outline: none;
}

.auth-field input:focus {
    border-color: var(--ds-blue);
    box-shadow: 0 0 0 4px rgba(47,109,246,.12);
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.auth-actions.single {
    justify-content: center;
}

.auth-link {
    color: var(--ds-blue-dark);
    font-weight: 900;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-btn {
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    min-height: 50px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--ds-yellow) 0%, var(--ds-orange) 42%, var(--ds-blue) 100%);
    box-shadow: 0 14px 28px rgba(47,109,246,.18);
}

.auth-btn.full {
    width: 100%;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .auth-title {
        font-size: 29px;
    }

    .auth-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .auth-btn {
        width: 100%;
    }

    .auth-link {
        text-align: center;
    }
}
