/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
    padding-top: 10px; /* Small top padding for the first section */
}

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

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

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-login__main-title {
    font-size: clamp(2em, 5vw, 3em); /* Responsive font size for H1 */
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-login__hero-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

/* Section General */
.page-login__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    font-weight: 700;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-login__section-description {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-login__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    padding: 60px 20px;
}

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

/* CTA Buttons */
.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-login__cta-button--primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__cta-button--primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-login__cta-button--secondary {
    background-color: transparent;
    color: #F2C14E; /* Gold */
    border: 2px solid #F2C14E; /* Gold */
    margin-left: 20px;
}

.page-login__cta-button--secondary:hover {
    background-color: #F2C14E; /* Gold */
    color: #08160F; /* Background */
    transform: translateY(-2px);
}

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

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

/* Card styles */
.page-login__card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #F2FFF6; /* Text Main */
    text-align: center;
}

/* Login Form Section */
.page-login__form-section {
    padding: 60px 20px;
}

.page-login__form-wrapper {
    max-width: 500px;
    margin: 40px auto 0 auto;
    padding: 40px;
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    text-align: left;
}

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 5px;
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
    color: #A7D9B8; /* Text Secondary */
}

.page-login__checkbox {
    margin-right: 8px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 3px;
    background-color: #08160F; /* Background */
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-login__checkbox:checked {
    background-color: #11A84E; /* Main Color */
    border-color: #11A84E; /* Main Color */
}

.page-login__checkbox:checked::before {
    content: '✓';
    color: #F2FFF6; /* Text Main */
    font-size: 14px;
    line-height: 1;
}

.page-login__forgot-password-link {
    color: #F2C14E; /* Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #57E38D; /* Glow */
}

.page-login__cta-button--form {
    margin-top: 20px;
    width: 100%;
}

.page-login__register-prompt {
    margin-top: 25px;
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
}

.page-login__register-link {
    color: #2AD16F; /* Button */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #57E38D; /* Glow */
}


/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 20px;
    background-color: #08160F; /* Background */
}

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

.page-login__benefit-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__benefit-icon {
    width: 100%; /* Ensure images take full width of card */
    height: auto;
    max-width: 300px; /* Example max width */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__benefit-title {
    font-size: 1.4em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-login__benefit-text {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
}

/* Process Section */
.page-login__process-section {
    padding: 60px 20px;
}

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

.page-login__step-item {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__step-number {
    width: 50px;
    height: 50px;
    background-color: #2AD16F; /* Button top color */
    color: #F2FFF6; /* Text Main */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-login__step-title {
    font-size: 1.3em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-login__step-text {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 60px 20px;
    background-color: #08160F; /* Background */
}

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

.page-login__trouble-card {
    padding: 30px;
    text-align: left;
}

.page-login__card-title {
    font-size: 1.3em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-login__card-text {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
}

/* Games Preview Section */
.page-login__games-preview-section {
    padding: 60px 20px;
}

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

.page-login__game-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Remove padding from card as image should fill */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__game-title {
    font-size: 1.3em;
    color: #F2C14E; /* Gold */
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-login__game-text {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    padding: 0 15px 20px 15px;
}


/* FAQ Section */
.page-login__faq-section {
    padding: 60px 20px;
    background-color: #08160F; /* Background */
}

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

.page-login__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #F2C14E; /* Gold */
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker */
}

.page-login__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-login__faq-question:hover {
    background-color: #1E3A2A; /* Divider */
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    text-align: left;
}

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


/* Responsive styles */
@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-login__hero-description {
        font-size: 1em;
    }

    .page-login__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Ensure buttons take full width */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .page-login__cta-button--secondary {
        margin-top: 15px;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__section-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }

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

    .page-login__dark-section,
    .page-login__benefits-section,
    .page-login__process-section,
    .page-login__troubleshooting-section,
    .page-login__games-preview-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 15px;
    }

    .page-login__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__form-wrapper {
        padding: 30px 20px;
        margin-top: 30px;
    }

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

    .page-login__benefit-card,
    .page-login__step-item,
    .page-login__trouble-card,
    .page-login__game-card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Videos responsive (if any, though none explicitly added to HTML) */
    .page-login video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-login__faq-item {
        margin-bottom: 10px;
    }

    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-login__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9em;
    }
}

/* Ensure no text color and background color are too close */
/* All text colors are light on dark backgrounds based on custom colors */
/* This ensures WCAG AA contrast */

/* Emergency fix for contrast, if needed, though current scheme is good */
.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;
}