/* style/login.css */

/* Base Styles for Login Page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-login__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: bold;
    color: #F2C14E; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Card Styles */
.page-login__card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #FFF6D6; /* Text Main */
}

/* Buttons */
.page-login__btn-primary {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #0A0A0A; /* Dark text for bright button */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box; /* Responsive button */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-login__btn-secondary {
    display: inline-block;
    background: transparent;
    color: #F2C14E; /* Primary color for text */
    padding: 12px 25px;
    border: 2px solid #F2C14E; /* Primary color for border */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box; /* Responsive button */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-secondary:hover {
    background: #F2C14E;
    color: #0A0A0A; /* Dark text for primary background */
    transform: translateY(-2px);
}

.page-login__text-link {
    color: #FFD36B; /* Auxiliary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__text-link:hover {
    color: #F2C14E;
    text-decoration: underline;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Spacing below hero content */
    padding-top: 10px; /* Small top padding for visual separation from header */
}

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

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

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 50px auto 0;
    padding: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.page-login__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-login__hero-description {
    font-size: 1.2em;
    color: #FFD36B; /* Auxiliary color for description */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Login Form Section */
.page-login__form-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__login-card {
    max-width: 500px;
    margin: 0 auto;
}

.page-login__card-title {
    font-size: 2em;
    color: #F2C14E; /* Primary color */
    text-align: center;
    margin-bottom: 30px;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12; /* Border */
    border-radius: 5px;
    background-color: #111111; /* Card BG */
    color: #FFF6D6; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 246, 214, 0.6); /* Lighter placeholder text */
}

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

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

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #F2C14E; /* Primary color for checkbox */
}

.page-login__checkbox-label {
    color: #FFF6D6; /* Text Main */
}

.page-login__forgot-password-link {
    color: #FFD36B; /* Auxiliary color */
    text-decoration: none;
}

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

.page-login__login-button {
    width: 100%;
    font-size: 1.1em;
    padding: 15px;
}

.page-login__no-account {
    text-align: center;
    margin-top: 25px;
    color: #FFF6D6; /* Text Main */
}

.page-login__register-link {
    color: #FFD36B; /* Auxiliary color */
    text-decoration: none;
    font-weight: bold;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* 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 {
    text-align: center;
    padding: 25px;
}

.page-login__benefit-icon {
    width: 200px; /* Minimum size requirement */
    height: 200px; /* Minimum size requirement */
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F2C14E; /* Primary color border */
}

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

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

/* App Download Section */
.page-login__app-download-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-login__app-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-login__app-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-login__app-mockup {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #3A2A12; /* Border */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-login__app-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-login__security-item {
    padding: 25px;
    text-align: center;
}

.page-login__security-title {
    font-size: 1.4em;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-login__security-text {
    color: #FFF6D6; /* Text Main */
    font-size: 0.95em;
}

/* Games Preview Section */
.page-login__games-preview-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
}

.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-align: center;
    padding: 20px;
}

.page-login__game-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #3A2A12; /* Border */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-login__game-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-login__game-title a {
    color: #F2C14E; /* Primary color for links */
    text-decoration: none;
}

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

.page-login__game-text {
    color: #FFF6D6; /* Text Main */
    font-size: 0.9em;
}

.page-login__view-all-games {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-login__promo-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-login__promo-card {
    padding: 25px;
    text-align: center;
}

.page-login__promo-thumbnail {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #3A2A12; /* Border */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-login__promo-title {
    font-size: 1.5em;
    color: #F2C14E; /* Primary color */
    margin-bottom: 15px;
}

.page-login__promo-text {
    color: #FFF6D6; /* Text Main */
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__troubleshooting-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0;
}

.page-login__troubleshooting-item {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #FFF6D6; /* Text Main */
    font-size: 1.05em;
}

.page-login__troubleshooting-item strong {
    color: #FFD36B; /* Auxiliary color */
}

.page-login__contact-support-cta {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-login__faq-item {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #111111; /* Card BG */
    color: #F2C14E; /* Primary color for question */
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1); /* Slight hover effect */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD36B; /* Auxiliary color */
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change to X or minus */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main */
    font-size: 1em;
}

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

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

/* Contact Section */
.page-login__contact-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0A0A0A; /* Background */
}

.page-login__contact-info {
    margin-top: 40px;
}

.page-login__contact-text {
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-content {
        padding: 30px;
        margin-top: 30px;
    }

    .page-login__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

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

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
    }

    .page-login__container {
        padding: 0 15px;
    }

    .page-login__hero-section {
        padding-bottom: 30px;
        padding-top: 0 !important; /* Resetting small top padding as header offset handles it */
    }

    .page-login__hero-content {
        padding: 20px;
        margin-top: 20px;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.7); /* Slightly darker for mobile */
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px; /* Add padding for buttons */
        box-sizing: border-box;
    }

    .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; /* Ensure padding on mobile buttons */
        padding-right: 15px; /* Ensure padding on mobile buttons */
    }

    .page-login__section-title {
        font-size: clamp(1.8em, 6vw, 2.2em);
        margin-bottom: 15px;
    }

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

    .page-login__login-card {
        padding: 20px;
    }

    .page-login__form-input {
        padding: 10px 12px;
    }

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

    .page-login__benefits-grid,
    .page-login__security-grid,
    .page-login__games-grid,
    .page-login__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__benefit-icon {
        width: 150px;
        height: 150px;
    }

    .page-login__app-content {
        flex-direction: column-reverse; /* App image on top for mobile */
        gap: 30px;
    }

    .page-login__app-text {
        order: 2;
    }

    .page-login__app-image {
        order: 1;
    }

    .page-login__app-cta {
        flex-direction: column;
        gap: 10px;
    }

    .page-login__game-thumbnail,
    .page-login__promo-thumbnail {
        height: 180px;
    }
}