/* style/login.css */
/* Body background is #08160F from shared.css, which is dark. Text should be light. */
/* Text Main: #F2FFF6, Text Secondary: #A7D9B8 */
/* Card BG: #11271B */
/* Button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
/* Border: #2E7A4E */
/* Glow: #57E38D */
/* Gold: #F2C14E */
/* Divider: #1E3A2A */
/* Deep Green: #0A4B2C */

.page-login {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main for general content */
    background-color: #08160F; /* Background color from custom palette */
    line-height: 1.6;
}

/* Animations for sections */
.page-login__why-choose-section,
.page-login__game-showcase-section,
.page-login__promotions-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-login__why-choose-section.is-visible,
.page-login__game-showcase-section.is-visible,
.page-login__promotions-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #0A4B2C; /* Deep Green for hero section background */
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 1600px; /* Adjust based on typical hero image width */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 10px;
    overflow: hidden;
}

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

.page-login__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-login__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #F2C14E; /* Gold color for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-login__description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
}

.page-login__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow color for secondary button text */
    border: 2px solid #2E7A4E; /* Border color */
}

.page-login__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: #2E7A4E; /* Border color as background on hover */
    color: #F2FFF6;
}

/* --- Form Section --- */
.page-login__form-section {
    padding: 80px 20px;
    background-color: #08160F; /* Background color */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__form-card {
    background-color: #11271B; /* Card BG */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 100%;
    text-align: center;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-login__form-title {
    font-size: 2rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
}

.page-login__form-subtitle {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    background-color: #0A4B2C; /* Deep Green for input background */
    color: #F2FFF6; /* Text Main */
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    border-color: #57E38D; /* Glow color on focus */
    outline: none;
    box-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

.page-login__forgot-password {
    position: absolute;
    right: 0;
    bottom: -25px;
    font-size: 0.9rem;
    color: #A7D9B8; /* Text Secondary */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.page-login__checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #2E7A4E; /* Border color */
    border-radius: 4px;
    background-color: #0A4B2C; /* Deep Green */
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.page-login__checkbox:checked {
    background-color: #2AD16F; /* Button primary color */
    border-color: #2AD16F;
}

.page-login__checkbox:checked::before {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #F2FFF6; /* Text Main */
    font-size: 14px;
}

.page-login__checkbox-label {
    color: #A7D9B8; /* Text Secondary */
    cursor: pointer;
    font-size: 0.95rem;
}

.page-login__btn-submit {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #F2FFF6; /* Text Main */
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-login__btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
}

.page-login__register-text {
    color: #A7D9B8; /* Text Secondary */
    margin-top: 25px;
    font-size: 1rem;
}

.page-login__register-link {
    color: #57E38D; /* Glow color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #F2C14E; /* Gold color on hover */
}

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

.page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #F2C14E; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-login__section-description {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* --- Why Choose Section --- */
.page-login__why-choose-section,
.page-login__game-showcase-section,
.page-login__promotions-section,
.page-login__faq-section,
.page-login__final-cta-section {
    padding: 80px 0;
    background-color: #08160F; /* Background color */
}

.page-login__features-grid,
.page-login__game-grid,
.page-login__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-login__feature-card,
.page-login__game-card,
.page-login__promo-card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px; /* Ensure cards have some height */
}

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

.page-login__feature-icon,
.page-login__game-image,
.page-login__promo-image {
    width: 100%;
    height: auto;
    max-height: 200px; /* Constrain image height in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure responsiveness */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-login__feature-title,
.page-login__game-title,
.page-login__promo-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__game-title a,
.page-login__promo-title a {
    color: inherit; /* Inherit color from parent */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__game-title a:hover,
.page-login__promo-title a:hover {
    color: #57E38D; /* Glow color on hover */
}

.page-login__feature-text,
.page-login__game-text,
.page-login__promo-text {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to grow */
}

.page-login__game-btn,
.page-login__promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #F2FFF6; /* Text Main */
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    margin-top: auto; /* Push button to bottom */
}

.page-login__game-btn:hover,
.page-login__promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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


/* --- FAQ Section --- */
.page-login__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
}

.page-login__faq-item {
    background-color: #11271B; /* Card BG */
    border-bottom: 1px solid #1E3A2A; /* Divider color */
}

.page-login__faq-item:last-child {
    border-bottom: none;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-login__faq-question:hover {
    background-color: #0A4B2C; /* Deep Green on hover */
}

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

.page-login__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color */
}

.page-login__faq-item[open] .page-login__faq-toggle {
    color: #F2C14E; /* Gold color when open */
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

/* --- Final CTA Section --- */
.page-login__final-cta-section {
    padding-bottom: 100px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-login__hero-section {
        padding: 40px 15px;
    }
    .page-login__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-login__description {
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    }
    .page-login__section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }
    .page-login__section-description {
        font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    }
}