:root {
    --auth-primary: #0048ff;
    --auth-primary-dark: #003ad1;
    --auth-text: #172033;
    --auth-muted: #667085;
    --auth-border: #cfd8e3;
}

html,
body.auth-page {
    min-height: 100%;
}

body.auth-page {
    display: grid;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    place-items: center;
    overflow-x: hidden;
    background-color: #edf3fb;
    background-image:
        radial-gradient(circle at 18% 18%, rgba(0, 72, 255, .13), transparent 28%),
        radial-gradient(circle at 82% 82%, rgba(6, 72, 189, .09), transparent 27%),
        radial-gradient(circle, rgba(67, 91, 130, .2) 1px, transparent 1px);
    background-size: auto, auto, 24px 24px;
    color: var(--auth-text);
    font-family: Inter, Arial, sans-serif;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-page .auth-card {
    width: min(100%, 440px);
    min-height: 0;
    padding: 34px;
    border: 1px solid rgba(185, 201, 224, .95);
    border-radius: 10px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 50px rgba(31, 55, 91, .13);
}

.auth-page .auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: var(--auth-text);
    font-size: 15px;
    font-weight: 800;
}

.auth-page .auth-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.auth-page .auth-kicker {
    margin: 0 0 7px;
    color: var(--auth-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.auth-page .auth-title,
.auth-page h1.auth-title {
    margin: 0 0 7px;
    color: var(--auth-text);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.auth-page .auth-description {
    margin: 0 0 25px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

.auth-page .password-header,
.auth-page .password-body {
    padding: 0;
    border: 0;
}

.auth-page .password-header .auth-description {
    margin: 0 0 25px;
}

.auth-page .auth-field,
.auth-page .field {
    display: grid;
    gap: 7px;
    margin: 0 0 16px;
}

.auth-page .auth-field label,
.auth-page .field label {
    margin: 0;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.auth-page .auth-field input,
.auth-page .field input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--auth-border);
    border-radius: 7px;
    background: #fff;
    color: var(--auth-text);
    font: 14px Inter, Arial, sans-serif;
    box-shadow: none;
}

.auth-page .auth-field input:focus,
.auth-page .field input:focus {
    border-color: var(--auth-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 72, 255, .1);
}

.auth-page .auth-hint,
.auth-page .hint {
    margin: -5px 0 18px;
    color: #8791a3;
    font-size: 11px;
    line-height: 1.45;
}

.auth-page .auth-actions,
.auth-page .actions {
    display: grid;
    gap: 10px;
}

.auth-page .btn {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 7px;
    background: #fff;
    color: #344054;
    font: 750 13px/1.2 Inter, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.auth-page .btn-primary {
    border-color: var(--auth-primary);
    background: var(--auth-primary);
    color: #fff;
}

.auth-page .btn-primary:hover,
.auth-page .btn-primary:focus-visible {
    border-color: var(--auth-primary-dark);
    background: var(--auth-primary-dark);
}

.auth-page .btn:focus-visible {
    outline: 3px solid rgba(0, 72, 255, .14);
    outline-offset: 2px;
}

.auth-page .btn:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.auth-page .auth-alert,
.auth-page .alert {
    margin: 0 0 18px;
    padding: 11px 13px;
    border: 1px solid #bfdbfe;
    border-left: 3px solid var(--auth-primary);
    border-radius: 7px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}

.auth-page .auth-alert-error,
.auth-page .alert-error {
    border-color: #fecaca;
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.auth-page .auth-email,
.auth-page .email {
    margin: 0 0 18px;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    word-break: break-word;
}

.auth-page .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 0 0 24px;
}

.auth-page .step {
    height: 4px;
    border-radius: 99px;
    background: #e2e8f0;
}

.auth-page .step.active {
    background: var(--auth-primary);
}

.auth-page .auth-back,
.auth-page .back {
    display: block;
    width: 100%;
    margin: 18px 0 0;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--auth-primary);
    font: 700 13px Inter, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 520px) {
    body.auth-page {
        display: block;
        padding: 0;
        background: #fff;
        background-image: none;
    }

    .auth-page .auth-card {
        width: 100%;
        min-height: 100vh;
        padding: 28px 20px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-page .auth-brand {
        margin-bottom: 46px;
    }
}
