/* style/login.css */

/* Base Styles for .page-login to ensure text visibility on dark body background */
.page-login {
    font-family: 'Arial', sans-serif; /* Example font */
    color: #FFF6D6; /* Main text color for dark background */
    background-color: transparent; /* Body background is handled by shared.css #0A0A0A */
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure some space before footer */
}

/* Section common styles */
.page-login__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size for H2 */
    font-weight: 700;
    color: #FFF6D6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-login__section-description {
    font-size: 18px;
    color: rgba(255, 246, 214, 0.8); /* Slightly lighter text for description */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-login__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Glow color for text */
    border: 2px solid #FFD36B; /* Glow color for border */
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-login__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

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

/* Image base styles */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures no extra space below images */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.page-login__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
    border-radius: 15px;
    margin-top: 50px; /* Push content down slightly from top */
}

.page-login__main-title {
    font-size: clamp(36px, 5vw, 56px); /* H1 size, responsive */
    font-weight: 800;
    color: #FFD36B; /* Glow color for H1 */
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-login__hero-description {
    font-size: 20px;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Introduction Section */
.page-login__introduction-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Body BG */
}

/* Form Section */
.page-login__form-section {
    padding: 80px 0;
    background-color: rgba(17, 17, 17, 0.8); /* Card BG */
}

.page-login__form-flex-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-login__form-area {
    flex: 1;
    min-width: 400px;
    padding: 40px;
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__form-title {
    font-size: 32px;
    color: #FFD36B; /* Glow color */
    margin-bottom: 15px;
    text-align: center;
}

.page-login__form-subtitle {
    font-size: 18px;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 30px;
    text-align: center;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12; /* Border */
    background-color: rgba(255, 255, 255, 0.05); /* Very slight white tint for input */
    color: #FFF6D6; /* Text Main */
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    outline: none;
    border-color: #FFD36B; /* Glow color */
    box-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

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

.page-login__remember-me {
    color: rgba(255, 246, 214, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-login__checkbox {
    width: 18px;
    height: 18px;
    accent-color: #FFD36B; /* Glow color for checkbox */
}

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

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

.page-login__submit-button {
    width: 100%;
    margin-top: 15px;
}

.page-login__social-login {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #3A2A12; /* Border */
    padding-top: 25px;
}

.page-login__social-text {
    color: rgba(255, 246, 214, 0.7);
    margin-bottom: 15px;
    font-size: 15px;
}

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

.page-login__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #FFF6D6;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    min-width: 120px; /* Ensure minimum width for buttons */
}

.page-login__social-btn--facebook {
    background-color: #3B5998;
}

.page-login__social-btn--google {
    background-color: #DB4437;
}

.page-login__social-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-login__no-account {
    text-align: center;
    margin-top: 25px;
    font-size: 16px;
    color: rgba(255, 246, 214, 0.8);
}

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

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

.page-login__image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.page-login__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* Features Section */
.page-login__features-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Body BG */
}

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

.page-login__feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__feature-icon {
    width: 100%; /* Ensure images fill card width */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__feature-title {
    font-size: 24px;
    color: #FFD36B; /* Glow color */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.page-login__feature-text {
    font-size: 16px;
    color: rgba(255, 246, 214, 0.7);
    line-height: 1.6;
}

/* CTA Banner Section */
.page-login__cta-banner {
    padding: 80px 0;
    background-color: rgba(17, 17, 17, 0.8); /* Card BG */
    text-align: center;
}

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

.page-login__cta-title {
    font-size: clamp(28px, 4vw, 42px); /* H2 size, responsive */
    color: #FFD36B; /* Glow color */
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-login__cta-description {
    font-size: 18px;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming {
    padding: 80px 0;
    background-color: #0A0A0A; /* Body BG */
}

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

.page-login__responsible-item {
    text-align: center;
}

.page-login__responsible-title {
    font-size: 22px;
    color: #FFD36B; /* Glow color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__responsible-text {
    font-size: 16px;
    color: rgba(255, 246, 214, 0.7);
    line-height: 1.6;
}

.page-login__responsible-footer-text {
    text-align: center;
    margin-top: 40px;
    font-size: 17px;
    color: #FFF6D6; /* Text Main */
}

.page-login__responsible-link {
    color: #FFD36B; /* Glow color */
    text-decoration: none;
    font-weight: 600;
}

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

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: rgba(17, 17, 17, 0.8); /* Card BG */
}

.page-login__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__faq-item {
    cursor: pointer;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #FFD36B; /* Glow color */
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(255, 211, 107, 0.05);
}

.page-login__faq-title {
    margin: 0;
    flex-grow: 1;
    color: #FFD36B; /* Glow color */
}

.page-login__faq-toggle {
    font-size: 24px;
    font-weight: 300;
    margin-left: 15px;
    color: #FFD36B; /* Glow color */
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to a cross */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Keep horizontal padding consistent */
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 16px;
    color: rgba(255, 246, 214, 0.7);
    line-height: 1.6;
}

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

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

.page-login__contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-login__contact-title {
    font-size: clamp(28px, 4vw, 42px); /* H2 size, responsive */
    color: #FFD36B; /* Glow color */
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-login__contact-description {
    font-size: 18px;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__form-flex-wrapper {
        flex-direction: column;
    }
    .page-login__form-area,
    .page-login__image-area {
        min-width: unset;
        width: 100%;
    }
    .page-login__form-image {
        max-width: 80%; /* Smaller on tablets */
    }
}

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

    .page-login__hero-content {
        padding: 40px 15px;
        margin-top: 30px;
    }

    .page-login__main-title {
        font-size: clamp(30px, 8vw, 42px);
    }

    .page-login__hero-description {
        font-size: 18px;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        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__section-title,
    .page-login__form-title,
    .page-login__cta-title,
    .page-login__contact-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .page-login__section-description,
    .page-login__form-subtitle,
    .page-login__cta-description,
    .page-login__contact-description {
        font-size: 16px;
    }

    .page-login__form-area {
        padding: 30px 20px;
    }

    .page-login__features-grid,
    .page-login__responsible-grid {
        grid-template-columns: 1fr;
    }

    .page-login__feature-icon {
        max-width: 90%; /* Ensure images are not too wide */
        margin-left: auto;
        margin-right: auto;
    }

    .page-login__container {
        padding: 0 15px; /* Consistent padding for mobile */
    }

    /* Mobile image adaptation */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* First content module top padding (not hero, hero has its own) */
    .page-login__introduction-section,
    .page-login__form-section,
    .page-login__features-section,
    .page-login__cta-banner,
    .page-login__responsible-gaming,
    .page-login__faq-section,
    .page-login__contact-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}