:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: #203a54;
    background: #f2f7fb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: radial-gradient(ellipse at 50% 0%, #dceefa, #f2f7fb 52%);
}

.login-card {
    width: min(100%, 420px);
    padding: clamp(22px, 7vw, 36px);
    border: 1px solid #dceaf5;
    border-top: 4px solid #2589c9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 48px #225b8214;
}

h1 {
    margin: 0;
    color: #195781;
    font-size: 2rem;
    letter-spacing: .045em;
}

.intro { margin: 8px 0 26px; color: #586e82; }

label {
    display: block;
    margin: 0 0 6px;
    font-size: .875rem;
    font-weight: 600;
}

input, button {
    width: 100%;
    min-height: 44px;
    border-radius: 6px;
    font: inherit;
}

input {
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid #bdcfde;
    color: #203a54;
    background: #f8fbfd;
}

button {
    margin-top: 4px;
    padding: 10px 14px;
    border: 1px solid #22658f;
    color: #fff;
    background: #256c99;
    font-weight: 600;
    cursor: pointer;
}

button:hover:enabled { background: #19567e; }
button:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 3px solid #85bfe7; outline-offset: 2px; }

#login-error {
    margin: 0 0 14px;
    color: #9c2c37;
    font-size: .875rem;
    line-height: 1.5;
}

.enable-js { margin: 16px 0 0; }
