/* Custom Admin Login Styles - scoped to login only */
:root {
    --primary: #007BFF;
    --primary-hover: #0056b3;
    --text: #333333;
    --border: #CCCCCC;
    --bg: #FFFFFF;
    --muted: #F0F0F0;
}

html, body { height: 100%; }
body.custom-login-page {
    margin: 0;
    font-family: Arial, sans-serif;
    /* Slightly dark blue gradient background */
    background: linear-gradient(135deg, #3f6fd4 0%, #284a99 100%);
    color: var(--text);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 400px;
    max-width: 90vw; /* responsive on mobile */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.logo-area {
    font-size: 48px;
    margin-bottom: 20px;
}

.title {
    margin: 0 0 4px 0;
}

.subtitle {
    margin-bottom: 16px;
    color: #666;
}

.alert { 
    padding: 10px; 
    border-radius: 6px; 
    background: #e9f7ef; 
    color: #1e7e34; 
    margin-bottom: 12px; 
    text-align: center;
}
.alert.error { background: #fdecea; color: #c82333; }

.login-form { text-align: left; }
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    height: 45px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding-left: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.btn { 
    display: inline-block; 
    width: 100%;
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
}

.btn-login { 
    background: var(--primary); 
    color: #fff; 
    font-weight: 700; 
    font-size: 16px; 
    height: 45px; 
    margin-bottom: 10px; 
}
.btn-login:hover { background: var(--primary-hover); }

.btn-ol { 
    background: var(--muted); 
    color: #000; 
    font-size: 14px; 
    height: 40px; 
    margin-bottom: 15px; 
}
.btn-ol:hover { background: #E0E0E0; }

.forgot { text-align: center; margin-top: 10px; }
.forgot a { color: var(--primary); font-size: 14px; text-decoration: none; }
.forgot a:hover { text-decoration: underline; }

.sr-only { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Modal */
.modal { 
    position: fixed; inset: 0; 
    display: none; 
    align-items: center; justify-content: center; 
    background: rgba(0,0,0,0.3); 
    padding: 16px; 
}
.modal.open { display: flex; }
.modal-card { 
    background: #fff; width: 420px; max-width: 95vw; 
    border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.modal-header { 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 12px 16px; border-bottom: 1px solid #eee; 
}
.modal-header h2 { font-size: 18px; margin: 0; }
.modal-close { background: transparent; border: none; font-size: 22px; line-height: 1; cursor: pointer; }
.modal-body { padding: 16px; color: #333; }
.modal-footer { padding: 12px 16px; border-top: 1px solid #eee; }

@media (max-width: 480px) {
    .login-card { width: 90%; }
}


