/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Inherited from body, but explicitly set for clarity */
}

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

.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
    overflow: hidden;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.page-login__hero-section > .page-login__container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.page-login__main-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin-bottom: 30px;
}

.page-login__form-wrapper {
    background-color: #FFFFFF; /* Custom background for form */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
    color: #333333; /* Dark text for light background */
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #017439;
    text-align: center;
}

.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 #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

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

.page-login__forgot-password-link:hover {
    text-decoration: underline;
}

.page-login__btn-login {
    width: 100%;
    padding: 15px 20px;
    background-color: #C30808; /* Custom login button color */
    color: #FFFFFF; /* Adjusted for WCAG AA contrast, original #FFFF00 */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-login__register-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    text-decoration: underline;
}

.page-login__security-section {
    background-color: #0a0a0a; /* Dark background */
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #FFFFFF;
}

.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-login__security-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-login__security-text {
    flex: 1;
    font-size: 1.1em;
}

.page-login__security-text p {
    margin-bottom: 15px;
}

.page-login__troubleshoot-section {
    background-color: #FFFFFF; /* Light background */
    padding: 80px 0;
    text-align: center;
    color: #333333;
}

.page-login__text-dark {
    color: #333333;
}

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

.page-login__troubleshoot-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-login__troubleshoot-heading {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-login__troubleshoot-item p {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-login__cta-section {
    background-color: #017439; /* Brand color background */
    padding: 60px 0;
    text-align: center;
    color: #FFFFFF;
}

.page-login__cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-login__cta-image {
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.page-login__cta-text {
    text-align: left;
    max-width: 600px;
}

.page-login__cta-text .page-login__section-title {
    margin-bottom: 20px;
}

.page-login__cta-text p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #C30808; /* Custom button color */
    color: #FFFFFF; /* Adjusted for WCAG AA contrast, original #FFFF00 */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__security-image {
        max-width: 80%;
        margin-bottom: 30px;
    }
    .page-login__cta-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__cta-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__description {
        font-size: 1em;
    }
    .page-login__form-wrapper {
        padding: 30px 20px;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__troubleshoot-grid {
        grid-template-columns: 1fr;
    }
    .page-login__security-image {
        max-width: 90%;
    }

    /* Mobile overflow prevention */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-login__btn-login,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        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;
    }
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__form-wrapper {
        padding: 25px 15px;
    }
    .page-login__form-title {
        font-size: 1.5em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
}