:root {
    --login-ink: #1a1a1a;
    --login-accent: #176b5f;
    --login-accent-light: #34b39f;
    --login-background: #edf2f1;
    --login-card: #ffffff;
    --login-border: #cad5d3;
    --login-error: #a52424;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--login-ink);
    background:
        linear-gradient(135deg, rgba(52, 179, 159, 0.1), transparent 45%),
        var(--login-background);
    font-family: Poppins, "Segoe UI", Arial, sans-serif;
}

.login-shell {
    width: min(100%, 420px);
    padding: 36px;
    border: 1px solid var(--login-border);
    border-top: 5px solid var(--login-accent-light);
    border-radius: 12px;
    background: var(--login-card);
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.12);
}

.login-kicker {
    margin: 0 0 6px;
    color: var(--login-accent);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

h1 {
    margin: 0 0 24px;
    font-size: clamp(1.7rem, 5vw, 1.9rem);
    line-height: 1.15;
}

#login-form {
    display: grid;
    gap: 10px;
}

label {
    font-size: 0.92rem;
    font-weight: 600;
}

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

input {
    padding: 10px 12px;
    border: 1px solid #87928f;
    color: var(--login-ink);
    background: #ffffff;
}

button {
    margin-top: 6px;
    padding: 10px 16px;
    border: 0;
    color: #ffffff;
    background: var(--login-accent);
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    background: #10584e;
}

button:disabled {
    cursor: wait;
    opacity: 0.72;
}

input:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(23, 107, 95, 0.32);
    outline-offset: 3px;
}

.login-error {
    margin: 6px 0 0;
    color: var(--login-error);
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-shell {
        padding: 28px 22px;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
