/* style/login.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-color-login-register: #C30808;
    --text-color-login-register: #FFFFFF; /* Adjusted for contrast, original #FFFF00 */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-color-light: #ffffff;
    --border-color-light: #e0e0e0;
}

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background: var(--background-color-light);
}

.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background-color: var(--primary-color);
    color: var(--text-color-light);
    overflow: hidden;
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.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;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 500px; /* Limit form width */
    margin-top: -150px; /* Overlap with image slightly for visual appeal */
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background for form */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--text-color-dark);
}

.page-login__main-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    margin-top: -100px; /* Move title up to be part of the hero image */
}

.page-login__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color-light);
    position: relative;
    z-index: 1;
}

.page-login__form-wrapper {
    background: var(--background-color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color-dark);
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color-light);
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

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

.page-login__remember-me label {
    margin-left: 5px;
    color: var(--text-color-dark);
}

.page-login__forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__btn-submit {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: var(--accent-color-login-register);
    color: var(--text-color-login-register);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__btn-submit:hover {
    background-color: #a30707;
    transform: translateY(-2px);
}

.page-login__register-text {
    margin-top: 20px;
    color: var(--text-color-dark);
}

.page-login__register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-login__download-app-button {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__download-app-button:hover {
    background-color: #00562e;
    transform: translateY(-2px);
}

.page-login__section {
    padding: 80px 20px;
    text-align: center;
}

.page-login__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-login__light-bg {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
}

.page-login__section-title {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__dark-section .page-login__section-title {
    color: var(--text-color-light);
}

.page-login__section-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-login__dark-section .page-login__section-description {
    color: rgba(255, 255, 255, 0.8);
}

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

/* Benefits Section */
.page-login__benefits-grid,
.page-login__security-features,
.page-login__game-categories,
.page-login__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

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

.page-login__dark-section .page-login__benefit-item,
.page-login__dark-section .page-login__security-item,
.page-login__dark-section .page-login__game-card,
.page-login__dark-section .page-login__promo-card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
}

.page-login__benefit-item:hover,
.page-login__security-item:hover,
.page-login__game-card:hover,
.page-login__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-item img,
.page-login__security-item img,
.page-login__game-card img,
.page-login__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-login__benefit-title,
.page-login__security-title,
.page-login__game-title,
.page-login__promo-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-login__dark-section .page-login__benefit-title,
.page-login__dark-section .page-login__security-title,
.page-login__dark-section .page-login__game-title,
.page-login__dark-section .page-login__promo-title {
    color: var(--text-color-light);
}

.page-login__game-title a,
.page-login__promo-title a {
    color: var(--text-color-dark);
    text-decoration: none;
}

.page-login__dark-section .page-login__game-title a,
.page-login__dark-section .page-login__promo-title a {
    color: var(--text-color-light);
}

.page-login__game-title a:hover,
.page-login__promo-title a:hover {
    text-decoration: underline;
}

.page-login__benefit-item p,
.page-login__security-item p,
.page-login__game-card p,
.page-login__promo-card p {
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-login__dark-section .page-login__benefit-item p,
.page-login__dark-section .page-login__security-item p,
.page-login__dark-section .page-login__game-card p,
.page-login__dark-section .page-login__promo-card p {
    color: rgba(255, 255, 255, 0.7);
}

.page-login__btn-game,
.page-login__btn-promo {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__btn-game:hover,
.page-login__btn-promo:hover {
    background-color: #00562e;
}

/* How-To-Login Section */
.page-login__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__step-item {
    background: var(--background-color-light);
    color: var(--text-color-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    height: 100%;
}

.page-login__step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.page-login__step-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-login__troubleshooting {
    background: #f9f9f9;
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    padding: 30px;
    margin-top: 60px;
    text-align: left;
}

.page-login__troubleshooting-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-login__troubleshooting ul {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-login__troubleshooting li {
    margin-bottom: 10px;
    font-size: 16px;
}

.page-login__btn-contact {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__btn-contact:hover {
    background-color: #00562e;
}

.page-login__more-security-info {
    margin-top: 40px;
    font-size: 16px;
}

.page-login__more-security-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-login__more-security-info a:hover {
    text-decoration: underline;
}

.page-login__cta-explore,
.page-login__cta-promotions {
    margin-top: 60px;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__btn-primary:hover {
    background-color: #00562e;
    transform: translateY(-2px);
}

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

.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--background-color-light);
    color: var(--text-color-dark);
}

.page-login__dark-section .page-login__faq-item {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-color-dark);
}

.page-login__dark-section .page-login__faq-item.active .page-login__faq-answer {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color-light);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-login__dark-section .page-login__faq-question {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
}

.page-login__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-login__dark-section .page-login__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-login__faq-question:active {
    background: #eeeeee;
}

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

.page-login__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
}

.page-login__dark-section .page-login__faq-question h3 {
    color: var(--text-color-light);
}