/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark background sections */
    font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px);
    text-align: center;
}

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

.page-login__hero-section .page-login__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
    max-width: 450px;
    margin: 40px auto 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__card-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: bold;
}

.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: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #017439; /* Brand color for checkbox */
}

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

.page-login__forgot-password {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #00a04a;
}

.page-login__btn-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    background-color: #C30808; /* Custom color for login button */
    color: #FFFF00; /* Custom font color for login button */
}

.page-login__btn-submit:hover {
    background-color: #a30606; /* Darker shade on hover */
}

.page-login__register-prompt {
    margin-top: 25px;
    color: #ffffff;
}

.page-login__register-link {
    color: #FFFF00; /* Custom font color for register link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

.page-login__light-text {
    color: #ffffff;
}

.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.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

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

/* Guide Section */
.page-login__guide-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-login__step-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
}

.page-login__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold;
}

.page-login__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__troubleshooting {
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: left;
}

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

.page-login__troubleshooting-list {
    list-style: none;
    padding: 0;
}

.page-login__troubleshooting-list li {
    margin-bottom: 15px;
    color: #f0f0f0;
    padding-left: 25px;
    position: relative;
}

.page-login__troubleshooting-list li::before {
    content: '•';
    color: #017439;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

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

/* Security Section */
.page-login__security-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-login__security-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.page-login__security-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__security-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

.page-login__security-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Register CTA Section */
.page-login__register-cta {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 80px 0;
}

.page-login__btn-register {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    margin-top: 30px;
    background-color: #C30808; /* Custom color for register button */
    color: #FFFF00; /* Custom font color for register button */
    text-transform: uppercase;
}

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

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

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    color: #017439;
    font-weight: bold;
    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 25px;
    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 25px 25px;
}

.page-login__faq-answer p {
    margin: 0;
    line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding: 80px 0;
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-card {
        padding: 30px;
        margin-top: 20px;
    }
    .page-login__card-title {
        font-size: 1.8em;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password {
        align-self: flex-end;
    }
    .page-login__btn-submit,
    .page-login__btn-register {
        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__section {
        padding: 40px 0;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
    }
    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__benefit-item,
    .page-login__step-item,
    .page-login__security-item {
        padding: 20px;
    }
    .page-login__benefit-image,
    .page-login__security-image {
        height: 180px;
    }
    .page-login__benefit-title,
    .page-login__security-title {
        font-size: 1.3em;
    }
    .page-login__troubleshooting-title {
        font-size: 1.5em;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-title {
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px 20px;
    }

    /* Mobile image and container responsiveness */
    .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__login-card,
    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__security-grid,
    .page-login__faq-list {
        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__hero-section .page-login__container {
        padding-left: 0;
        padding-right: 0;
    }
}