/* style/login.css */

/* Base styles for the login page */
.page-login {
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
    font-family: Arial, sans-serif;
}

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

.page-login__hero-section {
    position: relative;
    padding: 100px 0;
    background: url('[GALLERY:hero_login_bg:1920x1080:hm88 bet,online casino,login background,secure,dynamic,vietnam]') no-repeat center center/cover;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for prominence */
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-login__login-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-login__login-illustration {
    max-width: 40%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__login-form {
    background: rgba(26, 35, 126, 0.9); /* Primary brand color with transparency */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: left;
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
}

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

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

.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 #FFD700; /* Auxiliary color border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    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.95em;
}

.page-login__remember-me {
    color: #ffffff;
}

.page-login__remember-me input[type="checkbox"] {
    margin-right: 5px;
}

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

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

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background-color: #FFD700; /* Auxiliary color for primary action */
    color: #1A237E; /* Primary color for text on auxiliary background */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-primary:hover {
    background-color: #e6c200;
    color: #1A237E;
}

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

.page-login__register-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-login__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-login__dark-section {
    background-color: #1A237E; /* Primary brand color */
    color: #ffffff;
    padding: 80px 0;
}

.page-login__why-choose-us, .page-login__how-to-login, .page-login__troubleshooting, .page-login__security-info, .page-login__faq-section, .page-login__cta-final {
    padding: 80px 0;
}

.page-login__why-choose-us .page-login__section-title,
.page-login__troubleshooting .page-login__section-title,
.page-login__cta-final .page-login__section-title {
    color: #FFD700;
}

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

.page-login__feature-card, .page-login__step-card, .page-login__troubleshoot-item, .page-login__security-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__feature-card:hover, .page-login__step-card:hover, .page-login__troubleshoot-item:hover, .page-login__security-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-login__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(1.2);
    border-radius: 50%;
    object-fit: cover;
}

.page-login__feature-title, .page-login__step-title, .page-login__troubleshoot-title, .page-login__security-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-login__feature-text, .page-login__step-text, .page-login__troubleshoot-text, .page-login__security-text {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-login__step-number {
    width: 50px;
    height: 50px;
    background-color: #FFD700;
    color: #1A237E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-login__cta-block {
    text-align: center;
    margin-top: 60px;
}

.page-login__cta-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A237E;
}

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

.page-login__video-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Ensure dark background for video section */
    color: #ffffff;
    text-align: center;
}

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

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

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.page-login__faq-section {
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-login__faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #FFD700;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    margin: 0;
    color: #FFD700;
    font-size: 1.1em;
}

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

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

.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 accommodate content */
    padding: 15px 25px 25px;
}

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

.page-login__cta-final {
    text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__login-form-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__login-illustration {
        max-width: 60%;
    }
    .page-login__login-form {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 80px 0;
    }
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__login-form-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .page-login__login-illustration {
        max-width: 80%;
    }
    .page-login__login-form {
        padding: 30px;
        max-width: 95%;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__btn-primary, .page-login__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-login__features-grid, .page-login__steps-grid, .page-login__troubleshoot-grid, .page-login__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__feature-card, .page-login__step-card, .page-login__troubleshoot-item, .page-login__security-item {
        padding: 25px;
    }
    .page-login__feature-title, .page-login__step-title, .page-login__troubleshoot-title, .page-login__security-title {
        font-size: 1.3em;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-title {
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-section,
    .page-login__why-choose-us,
    .page-login__how-to-login,
    .page-login__troubleshooting,
    .page-login__security-info,
    .page-login__video-section,
    .page-login__faq-section,
    .page-login__cta-final {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-login__container {
        padding: 0;
    }

    /* Video responsiveness */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__video-section .page-login__container,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section padding is correct */
    }

    /* Button responsiveness */
    .page-login__cta-button,
    .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;
        flex-direction: column;
    }
}

/* No CSS filters for images */
.page-login img:not(.page-login__feature-icon) {
    filter: none;
}
.page-login__feature-icon {
    filter: brightness(1.2); /* Allowed for icons to enhance visibility */
}