/* Base Styles */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
    line-height: 1.6;
}

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

.page-login__section-title {
    font-size: clamp(24px, 4vw, 36px);
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-login__section-description {
    font-size: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #333333;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: #F4F7FB;
}

.page-login__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Darken image for text readability */
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-login__main-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-login__subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.page-login__login-card {
    background-color: #ffffff; /* Card BG */
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
    color: #1F2D3D;
}

.page-login__card-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #2F6BFF;
}

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

.page-login__form-label {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1F2D3D;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 6px;
    font-size: 16px;
    color: #000000; /* Custom Color_1776249996415 */
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
    border-color: #2F6BFF;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
    outline: none;
}

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

.page-login__checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #1F2D3D;
}

.page-login__checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #2F6BFF;
}

.page-login__forgot-password {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 500;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
    color: #1F2D3D;
}

.page-login__register-link {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 600;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #F4F7FB;
}

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

.page-login__benefit-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D6E2FF;
}

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

.page-login__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefit-title {
    font-size: 22px;
    font-weight: 700;
    color: #2F6BFF;
    margin-bottom: 15px;
}

.page-login__benefit-text {
    font-size: 15px;
    color: #333333;
}

/* Games Section */
.page-login__games-section {
    padding: 80px 0;
    background-color: #F4F7FB;
}

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

.page-login__game-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D6E2FF;
}

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

.page-login__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-login__game-title {
    font-size: 20px;
    font-weight: 700;
    color: #2F6BFF;
    margin: 20px 15px 10px;
}

.page-login__game-text {
    font-size: 15px;
    color: #333333;
    padding: 0 15px 20px;
}

.page-login__game-button {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__game-button:hover {
    opacity: 0.9;
}

/* Promotions Section */
.page-login__promotions-section {
    padding: 80px 0;
    background-color: #F4F7FB;
}

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

.page-login__promotion-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D6E2FF;
}

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

.page-login__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-login__promotion-title {
    font-size: 20px;
    font-weight: 700;
    color: #2F6BFF;
    margin: 20px 15px 10px;
}

.page-login__promotion-text {
    font-size: 15px;
    color: #333333;
    padding: 0 15px 20px;
}

.page-login__promotion-button {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: #6FA3FF; /* Auxiliary color */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__promotion-button:hover {
    opacity: 0.8;
}

.page-login__cta-promotions {
    text-align: center;
    margin-top: 50px;
}

/* Register CTA Section */
.page-login__register-cta-section {
    padding: 80px 0;
    background-color: #2F6BFF;
    color: #ffffff;
    text-align: center;
}

.page-login__register-cta-section .page-login__section-title,
.page-login__register-cta-section .page-login__section-description {
    color: #ffffff;
}

.page-login__cta-button--register {
    background: #A5C4FF; /* Glow */
    color: #2F6BFF;
    margin-top: 30px;
    box-shadow: 0 6px 20px rgba(165, 196, 255, 0.6);
}

.page-login__cta-button--register:hover {
    background: #C4DAFF;
    box-shadow: 0 8px 25px rgba(165, 196, 255, 0.8);
}

.page-login__download-app-text {
    margin-top: 30px;
    font-size: 16px;
}

.page-login__download-app-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.page-login__download-app-link:hover {
    color: #E0E0E0;
}

/* Support Section */
.page-login__support-section {
    padding: 80px 0;
    background-color: #F4F7FB;
}

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

.page-login__support-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #D6E2FF;
}

.page-login__support-title {
    font-size: 22px;
    font-weight: 700;
    color: #2F6BFF;
    margin-bottom: 15px;
}

.page-login__support-text {
    font-size: 15px;
    color: #333333;
    margin-bottom: 25px;
}

.page-login__support-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background: #6FA3FF;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__support-button:hover {
    opacity: 0.8;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #F4F7FB;
}

.page-login__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #fff;
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #1F2D3D;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* --- Responsive Styles --- */

/* Desktop/Tablet (max-width: 1024px) - General adjustments */
@media (max-width: 1024px) {
    .page-login__hero-content {
        padding: 15px;
    }

    .page-login__login-card {
        padding: 25px 30px;
        max-width: 400px;
    }

    .page-login__card-title {
        font-size: 26px;
    }

    .page-login__submit-button,
    .page-login__cta-button {
        font-size: 17px;
        padding: 13px 25px;
    }

    .page-login__benefits-section,
    .page-login__games-section,
    .page-login__promotions-section,
    .page-login__register-cta-section,
    .page-login__support-section,
    .page-login__faq-section {
        padding: 60px 0;
    }

    .page-login__section-title {
        font-size: clamp(22px, 3.5vw, 32px);
    }

    .page-login__section-description {
        margin-bottom: 30px;
    }

    .page-login__benefit-item,
    .page-login__game-card,
    .page-login__promotion-card,
    .page-login__support-item {
        padding: 25px;
    }

    .page-login__game-image {
        height: 180px;
    }

    .page-login__promotion-image {
        height: 220px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-login__container {
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    /* HERO Main Image Area */
    .page-login__hero-section {
        padding-top: 10px !important; /* Small top padding */
        min-height: auto;
        padding-bottom: 40px;
    }

    .page-login__hero-image {
        object-fit: contain !important; /* Prevent cropping */
        aspect-ratio: unset !important; /* Reset aspect ratio */
        width: 100% !important;
        height: auto !important;
        filter: brightness(0.8); /* Slightly less dark for mobile */
    }

    .page-login__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 10px;
    }

    .page-login__subtitle {
        font-size: clamp(16px, 4vw, 18px);
        margin-bottom: 30px;
    }

    .page-login__login-card {
        padding: 20px 25px;
        max-width: 100%;
    }

    .page-login__card-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-login__form-input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
        gap: 10px;
    }

    .page-login__submit-button,
    .page-login__cta-button,
    .page-login__game-button,
    .page-login__promotion-button,
    .page-login__support-button,
    .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;
        font-size: 16px;
    }

    .page-login__register-text {
        font-size: 14px;
    }

    /* Benefits Section */
    .page-login__benefits-section,
    .page-login__games-section,
    .page-login__promotions-section,
    .page-login__register-cta-section,
    .page-login__support-section,
    .page-login__faq-section {
        padding: 40px 0;
    }

    .page-login__section-title {
        font-size: clamp(20px, 6vw, 28px);
        margin-bottom: 15px;
    }

    .page-login__section-description {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .page-login__benefits-grid,
    .page-login__games-grid,
    .page-login__promotions-grid,
    .page-login__support-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 20px;
    }

    .page-login__benefit-item,
    .page-login__game-card,
    .page-login__promotion-card,
    .page-login__support-item {
        padding: 20px;
    }

    .page-login__benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .page-login__benefit-title {
        font-size: 20px;
    }

    .page-login__game-image {
        height: 150px;
    }

    .page-login__game-title,
    .page-login__promotion-title,
    .page-login__support-title {
        font-size: 18px;
    }

    .page-login__game-text,
    .page-login__promotion-text,
    .page-login__support-text {
        font-size: 14px;
    }

    .page-login__cta-promotions {
        margin-top: 30px;
    }

    .page-login__download-app-text {
        font-size: 14px;
        margin-top: 20px;
    }

    /* FAQ */
    details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
    .page-login__faq-qtext { font-size: 15px; }
    .page-login__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px;}
    details.page-login__faq-item .page-login__faq-answer { padding: 0 15px 15px; }

    /* General images and containers */
    .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__hero-image-wrapper,
    .page-login__benefits-grid,
    .page-login__games-grid,
    .page-login__promotions-grid,
    .page-login__support-grid,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure content area does not cause horizontal scroll */
    .page-login {
        overflow-x: hidden;
    }
}