* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
}

/* NEW COLOR PALETTE */
:root {
    --primary-maroon: #7F2020;
    --primary-dark: #5C1515;
    --primary-light: #9B2E2E;
    --sage-green: #869B7E;
    --sage-dark: #6B7D64;
    --soft-olive: #C9CAAC;
    --warm-cream: #F6F3EB;
    --text-dark: #2C2420;
    --text-soft: #5A4E45;
    --gold-accent: #C9A84C;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 50px rgba(127, 32, 32, 0.15);
    --border-light: #E8E0D5;
}

/* Background Image with Overlay - Using Primary Maroon Gradient Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(127, 32, 32, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    padding: 20px;
}

/* Main Login Card */
.login-card {
    background: var(--warm-cream);
    border-radius: 32px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 480px;
    padding: 48px 40px;
    position: relative;
    z-index: 2;
    animation: slideUp 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(127, 32, 32, 0.3);
    overflow: hidden;
    padding: 8px;
}

.church-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.login-header h2 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 20px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(134, 155, 126, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-maroon);
}

.admin-badge i {
    font-size: 14px;
}

/* Form Styles */
.login-form {
    margin-top: 20px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.input-group label i {
    margin-right: 8px;
    color: var(--primary-maroon);
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-maroon);
    box-shadow: 0 0 0 4px rgba(127, 32, 32, 0.1);
}

.input-group input::placeholder {
    color: #C4B5A0;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #C4B5A0;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-maroon);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-soft);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-maroon);
}

.forgot-link {
    color: var(--primary-maroon);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--sage-green);
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-maroon) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn i {
    font-size: 18px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(127, 32, 32, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-maroon) 100%);
}

.login-btn:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.login-footer p {
    color: var(--text-soft);
    font-size: 12px;
    margin-bottom: 12px;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    color: var(--soft-olive);
    font-size: 18px;
}

.security-badges i {
    transition: color 0.3s ease;
}

.security-badges i:hover {
    color: var(--primary-maroon);
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-card {
        padding: 36px 24px;
        margin: 16px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
/* ============================================
   ERROR MESSAGE STYLES
   ============================================ */
.error-message {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease;
}

.error-message i {
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

