:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --page-bg: #f6f4ef;
    --panel-bg: #ffffff;
    --text: #25211c;
    --muted: #736b62;
    --line: #ded8cf;
    --accent: #2f6f5e;
    --accent-strong: #235546;
    --focus: rgba(47, 111, 94, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
            linear-gradient(140deg, rgba(47, 111, 94, 0.1), transparent 38%),
            var(--page-bg);
    color: var(--text);
}

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

.login-panel {
    width: min(100%, 420px);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-bg);
    box-shadow: 0 18px 45px rgba(39, 31, 20, 0.12);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
}

.brand-title {
    margin: 0;
    font-size: 22px;
    font-weight: 750;
}

.brand-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.field label {
    font-size: 14px;
    font-weight: 650;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdfa;
    color: var(--text);
    font: inherit;
}

.field input:focus {
    outline: 3px solid var(--focus);
    border-color: var(--accent);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 24px;
    color: var(--muted);
    font-size: 14px;
}

.login-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #f0b8b8;
    border-radius: 8px;
    background: #fff1f1;
    color: #9a2828;
    font-size: 14px;
    line-height: 1.45;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.login-button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.login-button:hover {
    background: var(--accent-strong);
}

.login-button:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .login-page {
        padding: 20px 14px;
    }

    .login-panel {
        padding: 26px 20px;
    }
}
