/* 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: #0d1117; /* Matches body background */
}

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

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

.page-login__dark-bg {
    background-color: #0d1117;
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-login__hero-section {
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: #017439; /* Use brand color for hero background */
    background-image: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:hero_login:1920x1080:nhatvip,login_screen,secure_platform,online_betting]');
    background-size: cover;
    background-position: center;
    position: relative;
}

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

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

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

.page-login__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    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 #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
    margin-right: 8px;
}

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

.page-login__forgot-password-link {
    color: #FFFF00;
    text-decoration: none;
}

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

.page-login__btn-login {
    background-color: #C30808;
    color: #FFFF00;
    padding: 14px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-login__register-prompt {
    margin-top: 20px;
    color: #f0f0f0;
    font-size: 0.95em;
}

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

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

.page-login__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherits from section background */
}

.page-login__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherits from section background */
}

.page-login__why-login .page-login__section-title,
.page-login__why-login .page-login__section-description {
    color: #333333;
}

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

.page-login__feature-card,
.page-login__troubleshooting-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-login__feature-icon,
.page-login__security-icon {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-login__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-login__card-title a:hover {
    text-decoration: underline;
}

.page-login__card-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
    flex-grow: 1;
}

.page-login__card-link {
    display: inline-block;
    margin-top: 20px;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

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

.page-login__item-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-login__cta-buttons {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    width: auto;
}

.page-login__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid transparent;
}

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

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #000000; /* Adjusted for WCAG AA contrast on white */
    border: 2px solid #017439;
}

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

.page-login__app-download-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
}

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

.page-login__app-benefits {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    color: #f0f0f0;
}

.page-login__app-benefits li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.page-login__list-icon {
    color: #FFFF00;
    font-weight: bold;
    margin-right: 10px;
}

.page-login__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-description {
    color: #333333;
}

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

.page-login__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    background-color: #f0f0f0;
    list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: #333333;
}

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

.page-login__faq-item[open] .page-login__faq-toggle {
    content: '−';
}

.page-login__faq-answer {
    padding: 15px 25px 25px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
    border-top: 1px solid #e0e0e0;
}

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

.page-login__cta-content {
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-section .page-login__container {
        flex-direction: column;
        text-align: center;
    }
    .page-login__hero-content,
    .page-login__hero-image-wrapper,
    .page-login__app-text-content,
    .page-login__app-image-wrapper {
        flex: none;
        width: 100%;
    }
    .page-login__login-form-wrapper {
        max-width: 100%;
    }
    .page-login__app-download-content {
        flex-direction: column;
    }
    .page-login__app-text-content,
    .page-login__app-image-wrapper {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile with !important */
        min-height: auto;
        padding-bottom: 40px;
    }
    .page-login__section {
        padding: 40px 0;
    }
    .page-login__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-login__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__container {
        padding: 0 15px;
    }
    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image,
    .page-login__feature-icon,
    .page-login__security-icon,
    .page-login__app-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }
    /* Buttons responsive */
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-login__feature-card,
    .page-login__troubleshooting-card,
    .page-login__security-item {
        padding: 20px;
    }
    .page-login__card-title {
        font-size: 1.3em;
    }
    .page-login__item-title {
        font-size: 1.2em;
    }
    .page-login__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    .page-login__app-benefits li {
        justify-content: flex-start;
    }
    .page-login__app-text-content, .page-login__app-image-wrapper {
        padding: 0 15px;
    }
}