/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background (#0a0a0a) requires light text */
    background-color: #0a0a0a; /* Ensure consistency with body background if needed */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: url('[GALLERY:hero_login_bg:1920x1080:sunwim,login,hero_background,online_gaming]') no-repeat center center/cover;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Minimum height for hero */
    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: 1000px;
    margin: 0 auto;
}

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

.page-login__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Login Form Area */
.page-login__login-container {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    border-radius: 10px;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__login-form-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: left;
}

.page-login__form-title {
    color: #26A9E0; /* Brand color for title */
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

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

.page-login__form-group {
    margin-bottom: 15px;
}

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #26A9E0; /* Brand color border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    outline: none;
    border-color: #EA7C07; /* Login button color on focus */
    box-shadow: 0 0 0 3px rgba(40, 167, 224, 0.3);
}

.page-login__form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

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

.page-login__btn-login {
    background-color: #EA7C07; /* Custom color for login button */
    color: #ffffff;
    padding: 14px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

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

.page-login__register-text {
    text-align: center;
    margin-top: 20px;
    color: #f0f0f0;
}

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

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

.page-login__login-illustration {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-login__illustration-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element */
}

/* General Section Styles */
.page-login__section-title {
    font-size: 2.8em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    padding-top: 40px;
}

.page-login__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

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

.page-login__benefit-description {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-login__benefit-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Promotions Section */
.page-login__promotions-section {
    background-color: #0d0d0d; /* Darker background for contrast */
    padding: 60px 0;
    color: #ffffff;
}

.page-login__promo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__promo-image {
    flex: 1 1 400px; /* Allow image to grow/shrink, min 400px */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-login__promo-content {
    flex: 1 1 450px; /* Allow content to grow/shrink, min 450px */
    text-align: left;
}

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

.page-login__promo-text {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.page-login__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* For proper padding and hover effect */
}

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

/* FAQ Section */
.page-login__faq-section {
    background-color: #1a1a1a;
    padding: 60px 0;
    color: #ffffff;
}

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-login__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hide default marker in Webkit browsers */
.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #ffffff;
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.8;
}

/* CTA Section */
.page-login__cta-section {
    background-color: #0a0a0a;
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-login__cta-content {
    max-width: 900px;
}

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

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    padding: 12px 25px;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__promo-card {
        flex-direction: column;
    }
    .page-login__promo-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Fixed header spacing for mobile */
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__intro-text {
        font-size: 1em;
    }
    .page-login__login-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__login-illustration {
        order: -1; /* Move illustration above form on mobile */
    }
    .page-login__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__benefits-section,
    .page-login__promotions-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 0;
    }
    .page-login__container {
        padding: 0 15px; /* Add padding to container itself */
    }
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-login__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__promo-card,
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-login,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure all images inside .page-login are responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images/buttons should handle overflow */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-container,
    .page-login__promo-card,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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