/* style/login.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page content */
    background-color: var(--background-dark); /* Assume shared.css sets body background to a dark color */
    line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.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.5); /* Slightly darken image for text readability */
}

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

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-login__description {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-tertiary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-login__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--background-dark);
    transform: translateY(-3px);
}

/* Form Section */
.page-login__form-section {
    padding: 60px 20px;
    background-color: var(--background-dark);
    position: relative;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.page-login__form-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) blur(5px); /* Darken and blur background for form readability */
    z-index: 0;
}

.page-login__form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
}

.page-login__form-title {
    font-size: 2.2em;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: bold;
}

.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;
    color: var(--text-secondary);
    font-size: 0.95em;
}

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

.page-login__form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.page-login__form-input:focus {
    outline: none;
    border-color: var(--glow-color);
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

.page-login__checkbox {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

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

.page-login__forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-login__forgot-password:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

.page-login__submit-button {
    background: var(--button-gradient);
    color: #ffffff;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-login__no-account-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-top: 15px;
}

.page-login__register-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.page-login__text-block {
    font-size: 1.05em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: var(--background-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-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-login__card-title {
    font-size: 1.6em;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-login__card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.page-login__card-link:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: var(--deep-green);
    color: #ffffff;
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__text-block {
    color: #ffffff;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-login__security-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 1.05em;
    color: var(--text-secondary);
}

.page-login__security-item::before {
    content: '✅';
    margin-right: 15px;
    font-size: 1.2em;
}

.page-login__security-section .page-login__btn-secondary {
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

/* Games Section */
.page-login__games-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-login__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__game-description {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.page-login__btn-tertiary {
    background: var(--deep-green);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.page-login__btn-tertiary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* How to Register Section */
.page-login__how-to-register-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-login__registration-steps {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-login__step-item {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: var(--text-main);
}

.page-login__step-item:last-child {
    margin-bottom: 0;
}

.page-login__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: var(--gold-color);
    color: var(--background-dark);
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.page-login__registration-steps a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-login__registration-steps a:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-login__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-login__faq-item[open] {
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.2);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-login__faq-item[open] .page-login__faq-question {
    background-color: var(--primary-color);
}

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

.page-login__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

.page-login__faq-answer p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.page-login__faq-section a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-login__faq-section a:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

/* Video Section */
.page-login__video-section {
    padding: 80px 0;
    background-color: var(--deep-green);
    text-align: center;
}

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

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

/* CTA Bottom Section */
.page-login__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-content {
        padding: 15px;
    }
    .page-login__form-container {
        padding: 30px;
    }
    .page-login__benefits-grid,
    .page-login__game-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-login__hero-section,
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__games-section,
    .page-login__how-to-register-section,
    .page-login__faq-section,
    .page-login__video-section,
    .page-login__cta-bottom-section {
        padding: 40px 0;
    }

    .page-login__container,
    .page-login__form-container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-tertiary,
    .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__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-login__benefits-grid,
    .page-login__game-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image-wrapper,
    .page-login__video-wrapper,
    .page-login__hero-image,
    .page-login__form-image-bg,
    .page-login__card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !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-section {
        padding-top: 10px !important;
    }

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

    .page-login__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__form-container {
        padding: 25px;
    }
}