/* style/login.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --login-button-bg: #C30808;
    --login-button-text: #FFFF00;
    --background-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --form-input-bg: rgba(255, 255, 255, 0.9);
    --form-border-color: #ddd;
    --card-bg-dark: rgba(0, 0, 0, 0.6);
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    box-sizing: border-box;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.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: 1;
    max-width: 900px;
    padding: 20px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.page-login__hero-description a {
    color: var(--login-button-text); /* Yellow for links in hero description */
    text-decoration: underline;
}

.page-login__login-card {
    background: var(--card-bg-dark);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
}

.page-login__login-card-title {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--text-light);
}

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--form-border-color);
    border-radius: 5px;
    background: var(--form-input-bg);
    color: var(--text-dark);
    font-size: 1em;
}

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

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

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__checkbox-label {
    color: var(--text-light);
}

.page-login__forgot-password-link {
    color: var(--login-button-text); /* Yellow for forgot password link */
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__login-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--login-button-bg); /* Custom login button color */
    color: var(--login-button-text); /* Custom login button text color */
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.page-login__login-button:hover {
    background-color: #e00b0b; /* Slightly darker red on hover */
}

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

.page-login__register-link {
    color: var(--login-button-text); /* Yellow for register link */
    text-decoration: none;
    font-weight: bold;
}

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

/* General Section Styling */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__section-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Dark Background Sections */
.page-login__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-login__dark-bg .page-login__section-description a {
    color: var(--login-button-text);
}

/* Light Background Sections */
.page-login__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description {
    color: var(--text-dark);
}

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

.page-login__benefit-item,
.page-login__security-item,
.page-login__game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-login__light-bg .page-login__benefit-item,
.page-login__light-bg .page-login__security-item,
.page-login__light-bg .page-login__game-card {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}

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

.page-login__benefit-icon,
.page-login__security-icon,
.page-login__game-image {
    width: 100%; /* Ensure images fill their container */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__benefit-title,
.page-login__security-title,
.page-login__game-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-login__light-bg .page-login__benefit-title,
.page-login__light-bg .page-login__security-title,
.page-login__light-bg .page-login__game-title {
    color: var(--primary-color);
}

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

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

.page-login__benefit-text,
.page-login__security-text,
.page-login__game-text {
    font-size: 1em;
    line-height: 1.7;
}

.page-login__benefit-text a,
.page-login__security-text a,
.page-login__game-text a {
    color: var(--login-button-text);
    text-decoration: underline;
}

.page-login__light-bg .page-login__benefit-text a,
.page-login__light-bg .page-login__security-text a,
.page-login__light-bg .page-login__game-text a {
    color: var(--primary-color);
}

/* Guide Section */
.page-login__guide-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.page-login__step-item {
    flex: 1 1 300px;
    text-align: center;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

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

.page-login__step-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-login__step-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-login__step-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 20px;
    text-align: center;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: var(--login-button-bg); /* Custom login button color */
    color: var(--login-button-text); /* Custom login button text color */
    border: 2px solid var(--login-button-bg);
}

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

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

.page-login__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__faq-item:last-child .page-login__faq-question {
    border-bottom: none;
}

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

.page-login__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--text-light);
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.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-out, padding 0.3s ease-out;
    color: var(--text-light);
    text-align: left;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

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

.page-login__faq-answer a {
    color: var(--login-button-text);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        height: auto;
        min-height: 70vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__main-title {
        font-size: 2em;
        margin-top: 20px;
    }
    .page-login__hero-description {
        font-size: 0.95em;
    }
    .page-login__login-card {
        padding: 30px 20px;
        max-width: 100%;
    }
    .page-login__login-card-title {
        font-size: 1.8em;
    }
    .page-login__benefits-grid,
    .page-login__security-grid,
    .page-login__game-grid {
        grid-template-columns: 1fr;
    }
    .page-login__step-item {
        flex: 1 1 100%;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 15px 15px;
    }
    .page-login__container {
        padding: 30px 15px;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.9em;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image {
        height: 100%; /* Keep hero image full height */
    }
    .page-login__benefit-icon,
    .page-login__security-icon,
    .page-login__game-image {
        height: 180px; /* Adjust image height for mobile */
    }

    /* Ensure containers for images/buttons/videos don't overflow */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__cta-buttons,
    .page-login__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-login__faq-question,
    .page-login__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__login-card-title {
        font-size: 1.5em;
    }
    .page-login__faq-title {
        font-size: 1.1em;
    }
}

/* Color Contrast Fixes (if needed) - applied automatically by system */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}