/* ========== LOGIN PAGE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    /* CHANGED: Fixed path to background image in images folder */
    background: url('../images/kganya.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

/* Dark overlay for better readability - KEPT */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

/* Main container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

/* Glassmorphism Card - ENHANCED */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.church-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #025205, #013803);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 193, 7, 0.5);
    overflow: hidden;
}

.church-emblem {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.logo-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.logo-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    z-index: 2;
}

.form-control-glass {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.form-control-glass:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.form-control-glass::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #ffc107;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #025205, #013803);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(2, 82, 5, 0.4);
    background: linear-gradient(135deg, #036f08, #025205);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message Alert */
.alert-message {
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    animation: slideDown 0.3s ease;
}

.alert-message {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #6fcf97;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid rgba(23, 162, 184, 0.5);
    color: #5bc0de;
}

/* Close button for message */
.alert-message .close-msg {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    color: inherit;
    opacity: 0.7;
}

.alert-message .close-msg:hover {
    opacity: 1;
}

/* Demo Hint */
.demo-hint {
    background: rgba(255, 193, 7, 0.15);
    border-radius: 12px;
    padding: 10px;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.demo-hint i {
    color: #ffc107;
    margin-right: 6px;
}

.demo-hint strong {
    color: #ffc107;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 576px) {
    .glass-card {
        padding: 1.8rem;
    }
    
    .logo-section h1 {
        font-size: 1.5rem;
    }
    
    .logo-section p {
        font-size: 0.75rem;
    }
    
    .church-icon {
        width: 75px;
        height: 75px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .form-control-glass {
        padding: 12px 16px 12px 45px;
        font-size: 0.9rem;
    }
}