:root {
    --bg: #f5efe3;
    --bg-soft: #fbf8f1;
    --card: rgba(255, 255, 255, 0.96);
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --accent: #2f9b6f;
    --accent-dark: #1f8d68;
    --accent-glow: rgba(47, 155, 111, 0.16);
    --line: rgba(148, 163, 184, 0.22);
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "Inter", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 18%, rgba(244, 231, 204, 0.9) 0, transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(224, 238, 217, 0.9) 0, transparent 22%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 420px;
    height: 170px;
    top: -72px;
    left: -42px;
    background: rgba(232, 225, 208, 0.75);
    transform: rotate(9deg);
}

body::after {
    width: 360px;
    height: 160px;
    top: -52px;
    right: -36px;
    background: rgba(230, 237, 221, 0.78);
    transform: rotate(-7deg);
}

.login-container {
    position: relative;
    z-index: 1;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 440px;
    padding: 38px 32px 32px;
    backdrop-filter: blur(4px);
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-brand img {
    display: block;
    width: 220px;
    height: auto;
    object-fit: contain;
}

.login-header {
    text-align: center;
    margin-bottom: 26px;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: #17684c;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-header p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.alert-box {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--ink);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.btn-submit {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(47, 155, 111, 0.28);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(47, 155, 111, 0.36);
}

.btn-submit:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.login-footer a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--accent-dark);
}
