/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
    overflow-x: hidden;
}

/* LOGIN PAGE SPECIFIC STYLES */
.login-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.3s ease;
}

.login-form-group input:focus {
    outline: none;
    border-color: #2c5530; 
}

.login-form-group input::placeholder {
    color: #999;
    font-style: italic;
}

.forgot-password-link {
    color: #ff6b6b;
    text-decoration: underline;
    font-size: 1.8rem;
    margin-top: 0px;
    cursor: pointer;
}

.forgot-password-link:hover {
    color: #e55656;
}

.login-error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 15px;
    display: none;
    text-align: center;
    background: #ffe6e6;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ffcccc;
}

.login-success-message {
    color: #27ae60;
    font-size: 0.9rem;
    margin-top: 15px;
    display: none;
    text-align: center;
    background: #e6ffe6;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccffcc;
}

.captcha-section {
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0 10px 0px 0px;
}

.captcha-text {
    font-size: 1rem;
    color: #333;
    margin: 0 10px 0px 0px;
}

.captcha-icon {
    width: 40px;
    height: 40px;
    background: #2c5530; /* Changed to match contact.css theme */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-left: 10px;
}

.login-submit-btn {
    background: #2c5530; /* Changed to match contact.css theme */
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    min-height: 54px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-submit-btn:hover {
    background: #1a3d1f; /* Darker green on hover */
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading animation */
.login-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: loginSpin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Forgot Password Modal Styles */
.forgot-password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.forgot-password-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn {
    height: 100%;
    border: none;
    padding: 1rem 2rem 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-btn-primary {
    background: #333;
    color: white;
}

.modal-btn-secondary {
    background: #ddd;
    color: #333;
}


@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .login-page-container {
        padding: 140px 10px 30px; /* Further adjusted for smaller mobile */
    }

    .login-form-header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .captcha-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .brand-footer {
        font-size: 1rem;
    }
}

/* Additional form wrapper styling to match contact.css */
.login-form-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin: 20px;
}

@media (max-width: 768px) {
    .login-form-wrapper {
        margin: 10px;
        padding: 30px 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
}
