:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color: #333333;
    --light-bg: #f8f8f8;
    --border-color: #e0e0e0;
    --login-button-color: #EA7C07;
    --black-color: #000000;
}

.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--text-color); /* Body is light bg, so use dark text */
    line-height: 1.6;
    background-color: var(--secondary-color); /* Default white background */
}

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

.page-login__section--benefits {
    background-color: var(--light-bg);
}

.page-login__section--cta {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 0;
}

.page-login__section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.page-login__section-title--cta {
    color: var(--secondary-color);
}

.page-login__section-description {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.page-login__section-description--cta {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

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

/* HERO Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    /* body has padding-top from shared; this is for decorative top space */
    padding-top: 10px;
    background-color: var(--light-bg); /* light background for hero section */
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width for max-width to work */
}

.page-login__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Min size constraint */
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-login__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--black-color); /* Dark text for contrast on light background */
    margin-bottom: 15px;
    font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
}

.page-login__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-color);
}

.page-login__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for button max-width */
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 240px; /* Limit individual button width */
}

.page-login__btn-login {
    background: var(--login-button-color);
    color: var(--secondary-color);
    border: 2px solid var(--login-button-color);
}

.page-login__btn-login:hover {
    background: #c76505;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__btn-register {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-login__btn-register:hover {
    background: #2087b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__btn-register-large {
    margin-top: 30px;
    padding: 18px 50px;
    font-size: 20px;
    background: var(--login-button-color);
    color: var(--secondary-color);
    border: 2px solid var(--login-button-color);
    max-width: 300px; /* Specific width for large button */
    flex-grow: 0; /* Don't grow for large button */
}

.page-login__btn-register-large:hover {
    background: #c76505;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Benefits Grid */
.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-login__benefit-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
}

.page-login__benefit-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Min size constraint */
    object-fit: cover;
}

.page-login__card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-login__card-text {
    font-size: 16px;
    color: var(--text-color);
    flex-grow: 1; /* Push content to bottom */
}

/* Login Guide */
.page-login__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-login__guide-list li {
    margin-bottom: 30px;
    padding-left: 20px;
    position: relative;
}

.page-login__guide-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: -10px;
    top: 0;
    background: var(--primary-color);
    color: var(--secondary-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

.page-login__guide-step-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-login__guide-list p {
    font-size: 16px;
    color: var(--text-color);
    margin-left: 30px;
}

.page-login__guide-list img {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    min-height: 200px; /* Min size constraint */
    object-fit: cover;
}

.page-login__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--black-color);
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
}

.page-login__troubleshoot-list {
    list-style: disc;
    padding-left: 40px;
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
    font-size: 16px;
    color: var(--text-color);
}

.page-login__troubleshoot-list li {
    margin-bottom: 10px;
}

.page-login__troubleshoot-list li strong {
    color: var(--primary-color);
}

/* Game Categories */
.page-login__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-login__game-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-login__game-card:hover {
    transform: translateY(-5px);
}

.page-login__game-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 200px; /* Min size constraint */
    object-fit: cover;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: auto; /* Push to bottom of card */
    transition: all 0.3s ease;
    font-size: 16px;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Security & Support Grid */
.page-login__security-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-login__security-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-login__security-item:hover {
    transform: translateY(-5px);
}

.page-login__security-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Min size constraint */
    object-fit: cover;
}

.page-login__item-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-login__item-text {
    font-size: 16px;
    color: var(--text-color);
    flex-grow: 1;
}

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
}
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;
}
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: var(--light-bg);
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 18px; /* Increased font size for better readability */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color);
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color); /* Use primary color for toggle */
  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: var(--light-bg);
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  color: var(--text-color);
}

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

.page-login__btn-small {
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
}

/* CTA Section */
.page-login__cta-content {
    background: var(--primary-color);
    border-radius: 10px;
    padding: 50px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
}

.page-login__cta-content img {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    min-height: 200px; /* Min size constraint */
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-image img,
    .page-login__benefit-card img,
    .page-login__guide-list img,
    .page-login__game-card img,
    .page-login__security-item img,
    .page-login__cta-content img {
        min- /* Adjust min-height for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-login__section {
        padding: 40px 0;
    }

    .page-login__section-title {
        font-size: 24px;
    }

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

    .page-login__hero-section {
        padding-top: 10px !important; /* Fixed padding for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-login__hero-description {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .page-login__hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important; /* Ensure full width for buttons container */
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 25px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__btn-register-large {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 30px;
        font-size: 18px;
    }

    .page-login__container {
        padding: 0 15px;
    }

    .page-login__benefits-grid,
    .page-login__game-categories,
    .page-login__security-support-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 25px;
        margin-top: 30px;
    }

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

    .page-login__card-title,
    .page-login__item-title {
        font-size: 20px;
    }

    .page-login__card-text,
    .page-login__item-text {
        font-size: 15px;
    }

    .page-login__guide-list {
        margin-top: 30px;
    }

    .page-login__guide-list li {
        margin-bottom: 25px;
    }

    .page-login__guide-list li::before {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .page-login__guide-step-title {
        font-size: 18px;
    }

    .page-login__guide-list p {
        font-size: 15px;
        margin-left: 20px;
    }

    .page-login__sub-title {
        font-size: 20px;
        margin-top: 40px;
    }

    .page-login__troubleshoot-list {
        padding-left: 25px;
        font-size: 15px;
    }

    .page-login__faq-list {
        margin-top: 30px;
    }

    details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
    .page-login__faq-qtext { font-size: 16px; } /* Adjust font size for mobile FAQ */
    details.page-login__faq-item .page-login__faq-answer { padding: 0 15px 15px; }

    .page-login__cta-content {
        padding: 40px 20px;
    }
    
    /* Ensure all images are responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min- /* Further adjust min-height for mobile */
    }

    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-container,
    .page-login__hero-buttons,
    .page-login__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}