/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Full viewport height */
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    overflow: hidden; /* Prevent background image overflow */
    box-sizing: border-box;
}

.page-login__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; /* Place behind overlay and content */
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker background for form */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-login__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Login Form */
.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.1); /* Lighter background for the form itself */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-login__form-group {
    text-align: left;
}

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333; /* Dark text for input fields */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #888888;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__checkbox-label {
    color: #f0f0f0;
}

.page-login__forgot-password-link {
    color: #017439; /* Brand primary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #00a040; /* Lighter shade on hover */
    text-decoration: underline;
}

.page-login__login-button {
    background-color: #C30808; /* Custom Login button color */
    color: #FFFF00; /* Custom Login button font color */
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__login-button:hover {
    background-color: #e02020; /* Slightly lighter red on hover */
}

.page-login__register-prompt {
    margin-top: 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__register-link {
    color: #017439; /* Brand primary color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #00a040;
    text-decoration: underline;
}

/* General Section Styling */
.page-login__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff; /* Default for dark sections */
    font-weight: bold;
}

.page-login__dark-bg {
    background-color: #1a1a1a; /* Using body background color for consistency */
    color: #ffffff;
    padding: 60px 0;
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

/* Benefits Section */
.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-login__benefit-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text for dark background */
}

.page-login__benefit-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-width: 250px; /* Max size for icons */
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded images */
    object-fit: cover;
}

.page-login__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Primary brand color for titles */
    font-weight: bold;
}

.page-login__benefit-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* CTA Section */
.page-login__cta-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Consistent with body background */
}

.page-login__cta-card {
    background-color: #ffffff; /* White card on dark background */
    color: #333333;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-login__cta-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #017439; /* Primary brand color for CTA title */
    font-weight: bold;
}

.page-login__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}