* {
    box-sizing: border-box;
}


:root {

    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #eff6ff;

    --text: #172033;
    --muted: #64748b;

    --border: #dbe3ef;

    --background: #f7faff;

    --white: #ffffff;

    --success: #15803d;
    --success-bg: #f0fdf4;

    --error: #b91c1c;
    --error-bg: #fef2f2;

}


html,
body {

    margin: 0;
    padding: 0;

    min-height: 100%;

}


body {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(37, 99, 235, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(37, 99, 235, 0.06),
            transparent 30%
        ),
        var(--background);

}


/*
 * Main page
 */

.auth-page {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 40px 20px;

}


/*
 * Brand
 */

.auth-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 28px;

}


.brand-mark {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );

    font-size: 21px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.22);

}


.brand-name {

    font-size: 22px;

    font-weight: 750;

    letter-spacing: -0.4px;

}


.brand-tagline {

    margin-top: 1px;

    color: var(--muted);

    font-size: 12px;

}


/*
 * Card
 */

.auth-card {

    width: 100%;

    max-width: 440px;

    background: var(--white);

    border: 1px solid rgba(219, 227, 239, 0.9);

    border-radius: 16px;

    padding: 34px;

    box-shadow:
        0 20px 50px
        rgba(15, 35, 70, 0.08);

}


/*
 * Header
 */

.auth-header {

    margin-bottom: 28px;

}


.auth-header h1 {

    margin: 0 0 8px;

    font-size: 27px;

    line-height: 1.2;

    letter-spacing: -0.7px;

}


.auth-header p {

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;

}


/*
 * Forms
 */

.form-group {

    margin-bottom: 19px;

}


.form-group label {

    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 13px;

    font-weight: 650;

}


.label-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 7px;

}


.label-row label {

    margin: 0;

}


.label-row a {

    color: var(--blue);

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

}


.label-row a:hover {

    text-decoration: underline;

}


input {

    width: 100%;

    height: 46px;

    padding: 0 13px;

    border: 1px solid var(--border);

    border-radius: 9px;

    outline: none;

    color: var(--text);

    background: #ffffff;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.15s,
        box-shadow 0.15s;

}


input::placeholder {

    color: #94a3b8;

}


input:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.10);

}


/*
 * Buttons
 */

.primary-button {

    width: 100%;

    min-height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 9px;

    color: white;

    background: var(--blue);

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s,
        transform 0.15s,
        box-shadow 0.15s;

}


.primary-button:hover {

    background: var(--blue-dark);

    box-shadow:
        0 6px 16px
        rgba(37, 99, 235, 0.20);

}


.primary-button:active {

    transform: translateY(1px);

}


.secondary-button {

    width: 100%;

    min-height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 9px;

    color: #334155;

    background: white;

    font-size: 14px;

    font-weight: 650;

    text-decoration: none;

    transition:
        border-color 0.15s,
        background 0.15s;

}


.secondary-button:hover {

    border-color: #bfdbfe;

    background: #f8fbff;

}


/*
 * Divider
 */

.auth-divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 25px 0 16px;

    color: #94a3b8;

    font-size: 12px;

}


.auth-divider::before,
.auth-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #e5eaf1;

}


/*
 * Alerts
 */

.alert {

    padding: 12px 14px;

    margin-bottom: 20px;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.5;

}


.alert-error {

    color: var(--error);

    background: var(--error-bg);

    border: 1px solid #fecaca;

}


.alert-success {

    color: var(--success);

    background: var(--success-bg);

    border: 1px solid #bbf7d0;

}


/*
 * Small text
 */

.terms-text {

    margin: 14px 0 0;

    color: #94a3b8;

    font-size: 11px;

    line-height: 1.6;

    text-align: center;

}


/*
 * Success icon
 */

.success-icon {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    color: var(--success);

    background: var(--success-bg);

    font-size: 23px;

    font-weight: 700;

}


/*
 * Footer
 */

.auth-footer {

    margin-top: 24px;

    color: #94a3b8;

    font-size: 11px;

    text-align: center;

}


/*
 * Mobile
 */

@media (max-width: 520px) {

    .auth-page {

        padding: 25px 15px;

    }


    .auth-card {

        padding: 25px 21px;

        border-radius: 13px;

    }


    .auth-header h1 {

        font-size: 24px;

    }

}
