/* ============================================================
   Smooth Moves — Login Page Stylesheet
   ============================================================ */

:root {
    --primary:    #2e7d5e;
    --primary-dk: #1f5c44;
    --border:     #d0dde3;
    --radius:     6px;
}

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

body {
    background: url(/img/login-bg.jpg) center center / cover no-repeat fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 0;
}

.nav-back {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}
.nav-back:hover { color: #fff; }

.login-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
    margin: 1rem;
}

.login-box h1 { text-align: center; color: var(--primary-dk); font-size: 1.3rem; margin-bottom: 24px; }

label { display: block; font-size: .82rem; font-weight: 600; color: #7f8c8d; margin-bottom: 4px; }

input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    margin-bottom: 14px;
    background: #e8f5f0;
}
input:focus { outline: none; border-color: var(--primary); }

button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
button:hover { background: var(--primary-dk); }

.error {
    background: #fadbd8;
    color: #922b21;
    border: 1px solid #f1948a;
    border-radius: var(--radius);
    padding: 9px 14px;
    margin-bottom: 14px;
    font-size: .88rem;
}
