/* admin-login.css - extracted from admin-login.php */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FAF8F5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.login-card { background: white; border-radius: 12px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); width: 100%; max-width: 380px; }
.login-card h2 { text-align: center; margin-bottom: 1.5rem; color: #3D3028; font-size: 1.5rem; }
.login-card .subtitle { text-align: center; color: #7D6E5E; margin-top: -1rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: #4A3C30; margin-bottom: 0.35rem; }
.form-group input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #E5DDD3; border-radius: 8px; font-size: 1rem; transition: border-color 0.2s; }
.form-group input:focus { outline: none; border-color: #a67c52; box-shadow: 0 0 0 3px rgba(166,124,82,0.15); }
.btn-login { width: 100%; padding: 0.75rem; background: linear-gradient(135deg, #b8956a, #8b6919); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.btn-login:hover { opacity: 0.9; }
.error { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; padding: 0.75rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; text-align: center; }
.footer-link { text-align: center; margin-top: 1.5rem; }
.footer-link a { color: #a67c52; text-decoration: none; font-size: 0.85rem; }
.footer-link a:hover { text-decoration: underline; }

/* Password toggle styles */
.password-wrapper {
    position: relative;
}
.password-wrapper input {
    padding-right: 3rem;
}
.toggle-password-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7D6E5E;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-password-btn:hover {
    color: #4A3C30;
}


@media (max-width: 480px) {
    .login-card { padding: 1.5rem 1.25rem; border-radius: 10px; }
    .login-card h2 { font-size: 1.35rem; }
    .form-group input {
        min-height: 48px;
        font-size: 16px; /* avoids iOS zoom-on-focus on inputs */
    }
    .btn-login {
        min-height: 48px;
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
    }
    .footer-link a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.35rem 0.75rem;
    }
}