:root {
    --ink: #1f2933;
    --muted: #68737f;
    --line: #dfe4e8;
    --surface: #ffffff;
    --accent: #176b45;
    color-scheme: light;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--ink);
    background: #f4f6f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.login-panel {
    width: min(100%, 390px);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(31, 41, 51, 0.1);
}

.brand {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: 0;
}

.login-copy {
    margin: 9px 0 24px;
    color: var(--muted);
    font-size: 14px;
}

.login-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-left: 3px solid #b42318;
    color: #912018;
    background: #fff3f2;
    font-size: 13px;
}

form { display: grid; gap: 9px; }

label {
    font-size: 13px;
    font-weight: 700;
}

input,
button {
    min-height: 44px;
    border-radius: 7px;
    font: inherit;
}

input {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #cbd3ce;
    color: var(--ink);
    background: #fff;
}

input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(23, 107, 69, 0.13);
}

button {
    margin-top: 8px;
    border: 1px solid var(--accent);
    color: #fff;
    background: var(--accent);
    cursor: pointer;
    font-weight: 700;
}

button:hover { background: #11583a; }

@media (max-width: 480px) {
    .login-shell { padding: 16px; }
    .login-panel { padding: 24px 20px; }
}
