:root {
    --primary-color: #198754;
    --primary-hover: #157347;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    background: #d4edda;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 450px;
    width: 100%;
}

.login-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.brand-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.brand-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.form-floating > .form-control {
    border-radius: 0.75rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-login:hover {
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.3);
}

.login-options {
    text-align: center;
    margin: 1.5rem 0;
}

.login-toggle {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-toggle:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.loading-overlay {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading-spinner {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
}

.footer-links a {
    color: #2d5016;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #1a2e0c;
    text-decoration: underline;
}

.copyright {
    color: #2d5016;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.form-check {
    margin: 1rem 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.btn-password-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(25, 135, 84, 0.1);
}

.btn-password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-google {
    background: #4285f4;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-google:hover {
    background: #357ae8;
    color: white;
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.3);
}

.divider {
    margin: 1.5rem 0;
    height: 1px;
    background: #e9ecef;
}

.new-user-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.new-user-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.new-user-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media (max-width: 576px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
    
    .brand-icon {
        font-size: 2.5rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}