/* style/login.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --dark-bg-color: #121212; /* From shared.css body background */
}

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

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

.page-login__section-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-login__section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-on-dark);
    line-height: 1.2;
}

.page-login__section-description {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-link,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-login__btn-primary:hover,
.page-login__login-button:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

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

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

.page-login__btn-link {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    text-decoration: underline;
    padding: 0;
}

.page-login__btn-link:hover {
    color: darken(var(--primary-color), 10%);
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding as per requirements */
    padding-bottom: 60px;
    background-color: var(--dark-bg-color);
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 20px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-on-dark);
}

.page-login__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--secondary-color);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-login__forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: -5px;
    margin-bottom: 10px;
}

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

.page-login__login-button {
    width: 100%;
    margin-top: 10px;
}

.page-login__register-cta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__register-text {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-login__register-button {
    width: 100%;
}

/* Video Section */
.page-login__video-section {
    background-color: var(--dark-bg-color);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-on-dark);
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    margin: 30px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
}

.page-login__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    color: var(--text-on-dark);
}

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

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

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

.page-login__benefit-icon {
    width: 100%; /* Ensure large image, not icon */
    height: auto;
    max-width: 300px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-login__card-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* How to Login Section */
.page-login__how-to-login-section {
    padding: 60px 20px;
    background-color: var(--dark-bg-color);
    color: var(--text-on-dark);
}

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

.page-login__step-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-login__step-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-login__step-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.page-login__info-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

/* Security Section */
.page-login__security-section {
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-on-dark);
}

.page-login__security-section .page-login__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-login__security-content {
    flex: 1;
    min-width: 300px;
}

.page-login__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.page-login__security-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.page-login__security-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.page-login__security-footer-text {
    margin-top: 30px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* Explore Games Section */
.page-login__explore-games-section {
    padding: 60px 20px;
    background-color: var(--dark-bg-color);
    color: var(--text-on-dark);
}

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

.page-login__game-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-login__game-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 15px;
    border-radius: 8px;
}

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

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

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

.page-login__cta-text {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

/* Promotions Section */
.page-login__promotions-section {
    padding: 60px 20px;
    background-color: var(--secondary-color); /* Light background for this section */
    color: var(--text-on-light);
}

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

.page-login__promotions-section .page-login__section-description {
    color: var(--text-on-light);
}

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

.page-login__promotion-card {
    background: #f0f0f0;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-login__promotion-card:hover {
    transform: translateY(-5px);
}

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

.page-login__promotion-card .page-login__card-title {
    color: var(--primary-color);
}

.page-login__promotion-card .page-login__card-text {
    color: var(--text-on-light);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-on-dark);
}

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

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

.page-login__faq-item summary {
    list-style: none;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-login__faq-answer p {
    margin-bottom: 10px;
    color: inherit;
}

.page-login__faq-answer .page-login__btn-secondary {
    margin-top: 15px;
}

/* Final CTA Section */
.page-login__cta-final-section {
    padding: 60px 20px;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--secondary-color);
}

.page-login__cta-final-content .page-login__section-title {
    color: var(--secondary-color);
}

.page-login__cta-final-content .page-login__section-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

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

.page-login__cta-button {
    min-width: 200px;
}

/* Global image settings for content area - ensures no small icons */
.page-login img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__container,
    .page-login__hero-section,
    .page-login__video-section,
    .page-login__benefits-section,
    .page-login__how-to-login-section,
    .page-login__security-section,
    .page-login__explore-games-section,
    .page-login__promotions-section,
    .page-login__faq-section,
    .page-login__cta-final-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__hero-content {
        padding: 20px 10px;
    }

    .page-login__main-title {
        font-size: 2em; /* Smaller on mobile */
    }

    .page-login__subtitle {
        font-size: 1em;
    }

    .page-login__login-form-wrapper {
        padding: 20px;
    }

    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is kept */
        min-height: 200px !important;
    }

    /* Video responsive */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }
    .page-login__video-section {
        padding-top: 10px !important; /* Keep small top padding */
    }

    /* Buttons responsive */
    .page-login__cta-button,
    .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;
    }
    .page-login__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .page-login__security-section .page-login__container {
        flex-direction: column;
    }
    .page-login__security-image {
        order: -1; /* Image above text on mobile */
    }

    .page-login__benefit-icon {
        max-width: 100%;
    }
    .page-login__game-image {
        max-width: 100%;
    }
    .page-login__promotion-image {
        max-width: 100%;
    }
}