* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #0f172a;
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 35%
        ),
        #f4f7fb;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.login-card {
    width: min(
        100%,
        450px
    );
    padding: 38px;
    border: 1px solid #dfe7f1;
    border-radius: 22px;
    background: #ffffff;
    box-shadow:
        0 24px 70px
        rgba(
            15,
            23,
            42,
            0.09
        );
}

.back-link {
    display: inline-flex;
    margin-bottom: 30px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    color: #0f172a;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 800;
}

.brand-title {
    font-size: 14px;
    font-weight: 800;
}

.brand-subtitle {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.login-heading {
    margin-top: 34px;
}

.eyebrow {
    margin: 0 0 9px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.login-heading h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.login-heading p:last-child {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 9px;
    margin-top: 30px;
}

.login-form label {
    margin-top: 8px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
}

.login-form input:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px
        rgba(
            37,
            99,
            235,
            0.1
        );
}

.login-button {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: #0f172a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}

.login-button:hover {
    background: #1e293b;
}

.login-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.login-error {
    display: none;
    margin-top: 8px;
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 11px;
    line-height: 1.5;
}

.login-error.visible {
    display: block;
}

.security-info {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
}

.security-info strong {
    display: block;
    font-size: 11px;
}

.security-info p {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.55;
}

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

    .login-card {
        padding: 26px;
    }
}