/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default body background is white */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

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

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Login Form */
.page-login__login-form-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
    color: #333333; /* Dark text for light form background */
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #26A9E0; /* Brand primary color */
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: #26A9E0; /* Brand primary color on focus */
    outline: none;
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.page-login__btn-login {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background-color: #EA7C07; /* Specific login button color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.page-login__btn-login:hover {
    background-color: #d16b06; /* Slightly darker orange on hover */
}

.page-login__forgot-password {
    display: block;
    text-align: center;
    color: #26A9E0; /* Brand primary color */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #1a7bb0; /* Darker blue on hover */
}

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

.page-login__register-link {
    color: #26A9E0; /* Brand primary color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #1a7bb0; /* Darker blue on hover */
}

/* General Section Styles */
.page-login__section {
    padding: 80px 20px;
    text-align: center;
    box-sizing: border-box;
}

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

.page-login__section-title {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #26A9E0;
    line-height: 1.2;
}

.page-login__section-description {
    font-size: 1.15em;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Background Color Variants */
.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-login__dark-bg {
    background-color: #26A9E0; /* Brand primary color as background */
    color: #ffffff; /* White text for contrast */
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__benefit-title,
.page-login__dark-bg .page-login__benefit-text,
.page-login__dark-bg .page-login__step-title,
.page-login__dark-bg .page-login__step-text,
.page-login__dark-bg .page-login__troubleshooting-title,
.page-login__dark-bg .page-login__troubleshooting-list li,
.page-login__dark-bg .page-login__security-title,
.page-login__dark-bg .page-login__security-text,
.page-login__dark-bg .page-login__game-title,
.page-login__dark-bg .page-login__game-text,
.page-login__dark-bg .page-login__promotion-title,
.page-login__dark-bg .page-login__promotion-text,
.page-login__dark-bg .page-login__faq-qtext,
.page-login__dark-bg .page-login__faq-answer p {
    color: #ffffff;
}
.page-login__dark-bg .page-login__troubleshooting-list li strong {
    color: #ffffff; /* Ensure strong tags are also white */
}


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

.page-login__benefit-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100%; /* Ensure image fills card width responsively */
    height: auto;
    max-width: 250px; /* Constrain icon size */
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-login__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-login__benefit-text {
    font-size: 1em;
    color: #666666;
}

/* Guide Section */
.page-login__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-login__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
}

.page-login__step-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-login__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__troubleshooting-section {
    margin-top: 80px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 8px;
}

.page-login__troubleshooting-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-login__troubleshooting-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.page-login__troubleshooting-list li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid #ffffff;
    border-radius: 4px;
    font-size: 1.05em;
    color: #ffffff;
}

.page-login__troubleshooting-list li strong {
    color: #ffffff;
}

/* Security Section */
.page-login__security-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-login__security-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__security-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-login__security-text {
    font-size: 1em;
    color: #666666;
}

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

.page-login__game-card {
    display: block;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__game-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #ffffff;
}

.page-login__game-text {
    font-size: 0.95em;
    margin: 0 15px 20px;
    color: #f0f0f0;
}

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

.page-login__promotion-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__promotion-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-login__promotion-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-login__promotion-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

.page-login__btn-readmore {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__btn-readmore:hover {
    background-color: #1a7bb0;
}

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

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

.page-login__faq-item {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    color: #26A9E0;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-question {
    background-color: #e6f7ff; /* Lighter blue when open */
    border-bottom: none;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-login__faq-question:hover {
    background-color: #f0f8ff;
}

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

.page-login__faq-answer {
    padding: 15px 25px 20px;
    background-color: #f9f9f9;
    color: #555555;
    font-size: 1em;
    line-height: 1.7;
}

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

/* CTA Section */
.page-login__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Important for mobile responsiveness */
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* For long words */
}

.page-login__btn-primary {
    background-color: #EA7C07; /* Login button orange */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-login__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__hero-section {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 550px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__login-form-container {
        padding: 30px;
        max-width: 90%;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__section {
        padding: 60px 15px;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
}