:root {
    color-scheme: light;
    --page: #eef2f4;
    --panel: #ffffff;
    --text: #182026;
    --muted: #68737d;
    --line: #cbd3d9;
    --blue: #2166a5;
    --blue-dark: #18558d;
    --red: #a82f29;
    --red-soft: #fbeceb;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 50% 12%, rgba(33, 102, 165, 0.10), transparent 32rem),
        var(--page);
    color: var(--text);
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.login-stack {
    width: min(100%, 420px);
}

.login-card {
    width: 100%;
    padding: 34px;
    border: 1px solid #d9e0e5;
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 18px 48px rgba(24, 32, 38, 0.12);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #20272d;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 6px;
    font-size: 25px;
    line-height: 1.3;
}

.site-purpose,
.intro,
.security-note {
    color: var(--muted);
    line-height: 1.65;
}

.site-purpose {
    margin: 0 0 10px;
    color: #46515a;
    font-size: 13px;
    font-weight: 650;
}

.intro {
    margin: 0 0 24px;
}

.login-message {
    margin-bottom: 18px;
    padding: 11px 12px;
    border: 1px solid #e8beb9;
    border-radius: 6px;
    background: var(--red-soft);
    color: var(--red);
    line-height: 1.5;
}

.login-form label:not(.remember-row) {
    display: block;
    margin: 16px 0 7px;
    color: #3d4850;
    font-size: 13px;
    font-weight: 650;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    outline: none;
}

.login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(33, 102, 165, 0.14);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0;
    color: #46515a;
    font-size: 13px;
    cursor: pointer;
}

.remember-row input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--blue);
}

button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--blue-dark);
}

.security-note {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e5eaee;
    font-size: 12px;
}

.compliance-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 10px 0;
    color: #68737d;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.compliance-footer a {
    color: #4a647a;
    text-decoration: none;
}

.compliance-footer a:hover,
.compliance-footer a:focus-visible {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 520px) {
    .login-shell {
        display: block;
        padding: 0;
    }

    .login-stack {
        width: 100%;
    }

    .login-card {
        min-height: calc(100vh - 78px);
        padding: 28px 22px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .compliance-footer {
        padding: 16px 20px 18px;
        background: #ffffff;
    }
}
