/* login.css */
/* Login Page Specific Styles */

.login-container {
    max-width: 100%;
    overflow: hidden;
}

.login-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 125, 50, 0.7);
}

.login-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.login-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.login-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.login-form-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.login-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.login-form-container h2 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.login-form-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2e7d32;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #2e7d32;
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.form-group input:invalid {
    border-color: #d32f2f;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 0.8rem;
}

.error-message {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #555;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: #2e7d32;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 14px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #1b5e20;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    color: #555;
}

.register-link a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Welcome Animation Styles */
.welcome-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 125, 50, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-animation.active {
    opacity: 1;
    visibility: visible;
}

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: growAndShrink 2s infinite;
}

.welcome-message {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease;
}

.welcome-submessage {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    text-align: center;
    animation: fadeInUp 1.2s ease;
}

.countdown {
    margin-top: 30px;
    font-size: 1.5rem;
    color: white;
    animation: pulse 1s infinite;
}

@keyframes growAndShrink {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 600px) {
    .login-hero {
        height: 200px;
    }
    
    .login-content h1 {
        font-size: 2rem;
    }
    
    .login-form-container {
        padding: 30px 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .welcome-message {
        font-size: 2rem;
    }
    
    .welcome-icon {
        font-size: 4rem;
    }
}