:root {
    color-scheme: light;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(79, 70, 229, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(14, 165, 233, 0.10),
            transparent 32%
        ),
        #f7f8fc;
    color: #172033;
}

button,
input {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 38px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e7eaf1;
    border-radius: 22px;
    box-shadow:
        0 24px 60px rgba(23, 32, 51, 0.09);
}

.auth-brand {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 18px;
    background: #eef0ff;
    color: #4f46e5;
}

.auth-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.auth-header p {
    margin: 10px 0 0;
    color: #697386;
    font-size: 15px;
    line-height: 1.55;
}

.auth-alert {
    margin-top: 24px;
    padding: 13px 15px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #b42318;
    font-size: 14px;
    line-height: 1.45;
}

.auth-form {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #172033;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.form-group input:focus {
    border-color: #6366f1;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.12);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.password-toggle:hover {
    background: #f2f4f7;
    color: #344054;
}

.eye-closed {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.auth-submit {
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.auth-submit:hover {
    background: #4338ca;
    box-shadow:
        0 10px 24px rgba(79, 70, 229, 0.24);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #edf0f5;
    color: #98a2b3;
    font-size: 12px;
    text-align: center;
}

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

    .auth-card {
        padding: 28px 22px;
        border-radius: 18px;
    }
}
