/* Halaman auth (register/login/ganti-password) — reuse variabel --forest-* dari
   mapviewer/css/main.css (di-load duluan di base_auth.html), jangan duplikasi palet. */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest-50);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-card h1 {
    margin: 0;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--forest-800) 0%, var(--forest-600) 100%);
}

.auth-card h1::before {
    content: "🌳 ";
}

.auth-subtitle {
    margin: 18px 24px 0 24px;
    font-size: 12px;
    color: var(--ink-muted);
}

.auth-card form {
    padding: 12px 24px 24px 24px;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--forest-700);
    margin-bottom: 4px;
}

.auth-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    color: var(--ink);
}

.auth-field input:focus {
    outline: none;
    border-color: var(--forest-500);
    box-shadow: 0 0 0 2px var(--forest-100);
}

.auth-help {
    font-size: 11px;
    color: var(--ink-muted);
    margin-top: 3px;
}

.auth-error {
    font-size: 11px;
    color: #ba2121;
    margin-top: 3px;
}

.auth-submit {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: var(--forest-700);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s ease;
}

.auth-submit:hover {
    background: var(--forest-800);
}

.auth-links {
    padding: 0 24px 20px 24px;
    text-align: center;
    font-size: 12px;
}

.auth-links a {
    color: var(--forest-700);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-messages {
    list-style: none;
    margin: 16px 24px 0 24px;
    padding: 0;
}

.auth-messages li {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 8px;
}

.auth-message-success {
    background: var(--forest-50);
    border-left: 3px solid var(--forest-400);
    color: var(--forest-800);
}

.auth-message-error {
    background: #ffefef;
    border-left: 3px solid #ba2121;
    color: #ba2121;
}
