* { box-sizing: border-box; }

:root {
    --blue: #3a9e3a;
    --blue-dark: #2d7a2d;
    --rite-green: #3a9e3a;
    --rite-green-dark: #2d7a2d;
    --slate: #1e293b;
    --slate-dark: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
}

.login-page {
    margin: 0;
    min-height: 100dvh;
    font-family: 'Inter', system-ui, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    position: relative;
    overflow: hidden;
    background: var(--slate-dark);
}

.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--slate-dark);
}

.login-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.login-bg-gif {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
}

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(30, 41, 59, 0.55) 50%,
        rgba(58, 158, 58, 0.12) 100%
    );
    pointer-events: none;
}

.login-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
}

.login-logo-img {
    display: block;
    width: 100%;
    max-width: 168px;
    height: auto;
    margin: 0 auto 14px;
}

.login-box h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    text-align: center;
}

.login-sub {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.login-box label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.login-fg { margin-bottom: 18px; }

.login-box input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

.login-box input:focus {
    border-color: var(--rite-green);
    box-shadow: 0 0 0 3px rgba(58, 158, 58, 0.15);
}

.login-err {
    background: #fef2f2;
    color: #dc2626;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.login-box button[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--rite-green);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.login-box button[type="submit"]:hover {
    background: var(--rite-green-dark);
}
