/* style/login.css */

.page-login {
    font-family: 'Arial', sans-serif;
    background-color: #08160F; /* Explicitly setting background as per custom color */
    color: #F2FFF6; /* Main text color for dark background */
    line-height: 1.6;
}

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

.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    overflow: hidden;
    background-color: #0A4B2C; /* Deep green for hero background */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    box-sizing: border-box;
    color: #F2FFF6;
}

.page-login__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    color: #F2C14E; /* Gold for main title */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-login__hero-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-form-wrapper {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    margin: 30px auto 0 auto;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-login__form-title {
    font-size: 1.8em;
    color: #F2FFF6;
    margin-bottom: 25px;
    text-align: center;
}

.page-login__form-group {
    margin-bottom: 20px;
    text-align: left;
}

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: #A7D9B8;
    font-size: 0.95em;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2E7A4E;
    border-radius: 5px;
    background-color: #0A4B2C; /* Deep green */
    color: #F2FFF6;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
    color: #A7D9B8;
    opacity: 0.7;
}

.page-login__form-input:focus {
    border-color: #57E38D; /* Glow color on focus */
    outline: none;
}

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

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

.page-login__remember-me input {
    margin-right: 8px;
    accent-color: #11A84E; /* Green primary color for checkbox */
}

.page-login__forgot-password {
    color: #F2C14E; /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #57E38D; /* Glow color on hover */
}

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 14px 25px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 199, 104, 0.4); /* Shadow with auxiliary color */
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 20px;
    color: #A7D9B8;
    font-size: 0.95em;
}

.page-login__register-link {
    color: #F2C14E; /* Gold for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #57E38D;
}

.page-login__intro-text-section {
    padding: 60px 0;
    background-color: #08160F; /* Background color */
    color: #F2FFF6;
    text-align: center;
}

.page-login__section-subtitle {
    font-size: 2em;
    color: #F2C14E; /* Gold for subtitle */
    margin-bottom: 25px;
    font-weight: 600;
}

.page-login__intro-text-section p {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 1.05em;
    color: #A7D9B8;
}

.page-login__why-login-section {
    padding: 80px 0;
    background-color: #11271B; /* Card BG, acting as dark background */
    color: #F2FFF6;
    text-align: center;
}

.page-login__dark-bg {
    background-color: #11271B;
    color: #F2FFF6;
}

.page-login__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: #F2C14E; /* Gold for section titles */
    margin-bottom: 40px;
    font-weight: 700;
}

.page-login__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__feature-item {
    background-color: #0A4B2C; /* Deep Green for feature card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid #2E7A4E;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__feature-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__feature-title {
    font-size: 1.5em;
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__feature-description {
    font-size: 1em;
    color: #A7D9B8;
}

.page-login__benefits-section {
    padding: 80px 0;
    background-color: #08160F; /* Background color */
    color: #F2FFF6;
    text-align: center;
}

.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__benefit-item {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid #2E7A4E;
}

.page-login__benefit-title {
    font-size: 1.4em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-login__cta-bottom {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    background-color: transparent;
    color: #11A84E; /* Primary color */
    border: 2px solid #11A84E;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #11A84E;
    color: #F2FFF6;
}

.page-login__faq-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green for FAQ section */
    color: #F2FFF6;
    text-align: center;
}

.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-login__faq-item {
    background-color: #11271B; /* Card BG */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #2E7A4E;
    overflow: hidden;
}

.page-login__faq-item summary {
    list-style: none;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #1E3A2A; /* Divider color for question background */
    color: #F2FFF6;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #2E7A4E; /* Border color on hover */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #F2C14E; /* Gold */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #A7D9B8;
    background-color: #11271B; /* Card BG for answer content */
    border-top: 1px solid #1E3A2A; /* Divider */
}

.page-login__faq-answer p {
    margin-bottom: 10px;
}

.page-login__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-login__cta-section {
    padding: 80px 0;
    background-color: #08160F; /* Background color */
    color: #F2FFF6;
    text-align: center;
}

.page-login__section-description {
    font-size: 1.1em;
    color: #A7D9B8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__hero-content {
        max-width: 700px;
    }
    .page-login__login-form-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-bottom: 40px;
    }
    .page-login__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        padding: 20px;
    }
    .page-login__form-title {
        font-size: 1.5em;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__intro-text-section,
    .page-login__why-login-section,
    .page-login__benefits-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 0;
    }
    .page-login__section-title {
        font-size: clamp(1.5em, 7vw, 2.2em);
        margin-bottom: 30px;
    }
    .page-login__section-subtitle {
        font-size: clamp(1.4em, 6vw, 2em);
    }
    .page-login__feature-grid,
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-login__feature-item,
    .page-login__benefit-item {
        padding: 25px;
    }
    .page-login__feature-image {
        max-width: 200px;
    }
    .page-login__cta-bottom,
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* All images responsive */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All image containers responsive */
    .page-login__hero-image-wrapper,
    .page-login__feature-item,
    .page-login__benefit-item,
    .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-login__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Ensure images are responsive by default */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* No CSS filter on images */
}

/* Ensure containers that might hold images or buttons are responsive */
.page-login__section,
.page-login__card,
.page-login__container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}