:root {
    --bg: #f5f7f4;
    --surface: #ffffff;
    --text: #1f2a1f;
    --muted: #5c6b5d;
    --accent: #2f6b3b;
    --accent-soft: #e9f3ea;
    --border: #dde5dd;
    --error-bg: #fff2f2;
    --error-border: #f5c6c6;
    --error-text: #8b1a1a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background: radial-gradient(circle at 20% 0%, #f9fcf8 0%, var(--bg) 45%, #eef3ed 100%);
    color: var(--text);
}

.page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.panel {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31, 42, 31, 0.08);
    padding: 28px 24px;
}

/* ── Brand ─────────────────────────────────────── */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    padding: 6px;
    flex-shrink: 0;
}

.title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.subtitle {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

/* ── Alert ──────────────────────────────────────── */
.alert {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

/* ── Form ───────────────────────────────────────── */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 107, 59, 0.12);
}

.btn-login {
    margin-top: 6px;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-login:hover,
.btn-login:focus-visible {
    background: #245430;
    transform: translateY(-1px);
    outline: none;
}

.btn-login:active {
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
    .panel {
        border-radius: 14px;
        padding: 20px 16px;
    }

    .logo {
        width: 46px;
        height: 46px;
    }

    .title {
        font-size: 1.15rem;
    }
}
