/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly white background */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for aesthetic */
}

.page-login__hero-content {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for readability */
    border-radius: 8px;
    margin-top: 20px; /* Space below image */
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__main-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for main title */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-login__lead-text {
    font-size: 1.1em;
    color: #555555;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* General Container for content sections */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-login__section-title {
    font-size: 2em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
}

.page-login__form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 40px;
}

.page-login__login-form {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.page-login__forgot-password-link {
    color: #017439;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #005a2d;
}

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

.page-login__btn-login:hover {
    background-color: #a00606;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
}

.page-login__register-prompt p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #555555;
}

.page-login__btn-register {
    display: inline-block;
    background: #017439; /* Brand color for register button */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-register:hover {
    background-color: #005a2d;
}

.page-login__form-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
}

.page-login__benefits-section .page-login__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-login__benefits-section .page-login__section-description {
    color: #f0f0f0;
}

.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: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-5px);
}

.page-login__benefit-title {
    font-size: 1.4em;
    color: #FFFF00; /* Yellow for benefit titles */
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-login__benefits-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 60px auto 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
}

.page-login__troubleshooting-content {
    margin-top: 40px;
    text-align: left;
}

.page-login__troubleshooting-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__troubleshooting-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__troubleshooting-item p,
.page-login__troubleshooting-list li {
    color: #555555;
    margin-bottom: 10px;
}

.page-login__troubleshooting-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-login__troubleshooting-list strong {
    color: #017439;
}

.page-login__troubleshooting-footer {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: #666666;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
}

.page-login__security-section .page-login__section-title {
    color: #ffffff;
}

.page-login__security-section .page-login__section-description {
    color: #f0f0f0;
}

.page-login__security-content {
    margin-top: 40px;
    text-align: left;
}

.page-login__security-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__security-title {
    font-size: 1.3em;
    color: #FFFF00; /* Yellow for security titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__security-item p,
.page-login__security-list li {
    color: #f0f0f0;
    margin-bottom: 10px;
}

.page-login__security-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-login__security-list strong {
    color: #FFFF00;
}

.page-login__security-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 60px auto 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Call to Action Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    text-align: center;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-login__btn-primary {
    background: #C30808; /* Login/Register button color */
    color: #FFFF00; /* Login/Register text color */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-login__btn-secondary {
    background: #017439; /* Brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* General image responsive styles */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures proper block behavior for max-width/height:auto */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__form-wrapper {
        flex-direction: column;
    }
    .page-login__form-image {
        margin-top: 40px;
    }
    .page-login__benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* General responsive for images and containers */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__troubleshooting-section,
    .page-login__security-section,
    .page-login__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Hero Section */
    .page-login__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming shared.css handles body padding-top */
        margin-bottom: 20px;
    }

    .page-login__hero-image {
        max-height: 300px;
    }

    .page-login__hero-content {
        padding: 15px;
        margin-top: 15px;
    }

    .page-login__main-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .page-login__lead-text {
        font-size: 1em;
    }

    /* Section Titles and Descriptions */
    .page-login__section-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    /* Form Section */
    .page-login__form-section {
        padding: 40px 0;
    }

    .page-login__form-wrapper {
        gap: 20px;
    }

    .page-login__login-form {
        padding: 25px;
    }

    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .page-login__btn-login {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__btn-register {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__form-image {
        margin-top: 30px;
    }

    /* Benefits Section */
    .page-login__benefits-section {
        padding: 50px 0;
    }

    .page-login__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__benefit-item {
        padding: 20px;
    }

    .page-login__benefit-title {
        font-size: 1.2em;
    }

    .page-login__benefits-image {
        margin-top: 40px;
    }

    /* Troubleshooting Section */
    .page-login__troubleshooting-section {
        padding: 50px 0;
    }

    .page-login__troubleshooting-content {
        margin-top: 25px;
    }

    .page-login__troubleshooting-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-login__troubleshooting-title {
        font-size: 1.1em;
    }

    .page-login__troubleshooting-list {
        padding-left: 20px;
    }

    /* Security Section */
    .page-login__security-section {
        padding: 50px 0;
    }

    .page-login__security-content {
        margin-top: 25px;
    }

    .page-login__security-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-login__security-title {
        font-size: 1.1em;
    }

    .page-login__security-list {
        padding-left: 20px;
    }

    .page-login__security-image {
        margin-top: 40px;
    }

    /* Call to Action Section */
    .page-login__cta-section {
        padding: 50px 0;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1.1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}