/* style/login.css */

/* Base styles */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF;
}

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

.page-login__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-login__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Hero Section */
.page-login__hero-section {
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-login__hero-section .page-login__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-login__hero-content {
    flex: 1;
    min-width: 300px;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-login__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-login__login-form-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin-top: 30px;
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #005f2e;
    border-radius: 5px;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
}

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

.page-login__login-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.page-login__login-button:hover {
    background-color: #a00606;
}

.page-login__form-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
}

.page-login__forgot-password,
.page-login__register-link {
    color: #FFFF00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
    color: #ffffff;
}

.page-login__hero-image-container {
    flex: 1;
    min-width: 400px;
    text-align: right;
}

.page-login__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-login__about-section .page-login__container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 40px;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-login__card {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333333;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-login__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-login__card-text {
    font-size: 1em;
    line-height: 1.6;
}

/* Guide Section */
.page-login__guide-section .page-login__container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 40px;
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 30px auto;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

.page-login__video-caption {
    margin-top: 10px;
    font-style: italic;
    color: #666666;
    font-size: 0.9em;
}

.page-login__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-login__guide-item {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #017439;
    border-radius: 5px;
}

.page-login__guide-step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-login__guide-step-text {
    font-size: 1em;
    line-height: 1.6;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-login__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

/* Safety Section */
.page-login__safety-section .page-login__container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 40px;
}

.page-login__safety-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-login__safety-item {
    margin-bottom: 25px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid #017439;
}

.page-login__safety-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-login__safety-text {
    font-size: 1em;
    line-height: 1.6;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-login__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

.page-login__faq-text {
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.6;
}

/* CTA Section */
.page-login__cta-section .page-login__container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 40px;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

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

.page-login__large-button {
    min-width: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__hero-description {
        font-size: 1.15em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-image-container {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section .page-login__container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .page-login__hero-content {
        order: 2;
    }
    .page-login__hero-image-container {
        order: 1;
        min-width: unset;
    }
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
    .page-login__grid-3-cols, .page-login__grid-2-cols {
        grid-template-columns: 1fr;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary, .page-login__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__video-wrapper {
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .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;
        overflow-x: hidden !important;
    }
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important; 
    }
    .page-login__faq-question {
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__paragraph,
    .page-login__hero-description,
    .page-login__card-text,
    .page-login__guide-step-text,
    .page-login__safety-text,
    .page-login__faq-text {
        font-size: 0.95em;
    }
    .page-login__login-form-wrapper {
        padding: 20px;
    }
    .page-login__form-input {
        padding: 10px;
    }
    .page-login__login-button {
        font-size: 1.1em;
        padding: 12px;
    }
    .page-login__form-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}