:root {
    --primary-green: #0a5032;
    /* Deep forest green for header/footer */
    --button-green: #00c957;
    /* Bright vibrant green for buttons */
    --button-hover: #00a849;
    --text-color: #333;
    --label-color: #5d6d7e;
    --border-color: #dcdcdc;
    /* Light gray for input lines */
    --promo-bg: #dbe0e6;
    /* Grayish blue background for promo */
    --promo-text: #5d6d7e;
    --input-focus: #00c957;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f7fa;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.main-header {
    background-color: var(--primary-green);
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

.logo img {
    height: 40px;
    display: block;
}

/* Hero & Banner */
.hero-section {
    position: relative;
    width: 100%;
    background-color: #888;
}

.banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Login Card Section */
.login-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    /* Overlap the banner */
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    color: var(--label-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 1rem;
    outline: none;
    transition: border-bottom-color 0.3s;
}

.form-group input:focus {
    border-bottom-color: var(--input-focus);
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin-bottom: 15px;
    transition: background-color 0.2s;
}

.btn-login {
    background-color: var(--button-green);
}

.btn-login:hover {
    background-color: var(--button-hover);
}

.btn-register {
    background-color: var(--button-green);
}

.btn-register:hover {
    background-color: var(--button-hover);
}

.form-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--label-color);
}

.form-links a {
    color: var(--label-color);
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.form-links .separator {
    margin: 0 10px;
}

/* Promo Section */
.promo-section {
    background-color: var(--promo-bg);
    padding: 60px 20px;
    text-align: center;
    flex-grow: 1;
    /* Pushes footer down */
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-content h2 {
    color: var(--promo-text);
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.2;
}

.promo-content em {
    font-style: italic;
    font-family: 'Open Sans', sans-serif;
}

/* Footer */
.main-footer {
    background-color: var(--primary-green);
    color: white;
    padding: 20px 0;
    font-size: 0.8rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links .separator {
    margin: 0 5px;
}


/* Media Queries */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-header {
        height: 60px;
    }

    .banner-image {
        height: 250px;
        /* Fixed height to maintain visual impact */
        object-fit: cover;
        /* Crop sides instead of shrinking */
        object-position: left;
        /* Keep the women visible */
    }

    .login-section {
        margin-top: -60px;
        /* Overlap the banner */
        padding: 0 20px 50px;
    }

    .login-card {
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        /* Restore shadow if desired or keep flat */
    }

    .promo-section {
        padding: 60px 20px 150px 20px;
    }

    .promo-content h2 {
        font-size: 2.8rem;
        /* Large text as requested */
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00c957;
    /* var(--button-green) manually valid here */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Messages */
.message-container {
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

.message-error {
    color: #e74c3c;
}

.message-success {
    color: #0a5032;
    /* var(--primary-green) */
    font-weight: 600;
}