/* style/login.css */
.page-login {
    color: #ffffff; /* 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: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
}

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

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 71, 171, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__main-title {
    font-size: 3.2em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__intro-text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-login__form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #333333;
}

.page-login__form-title {
    font-size: 1.8em;
    color: #0047AB;
    margin-bottom: 25px;
    text-align: center;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-login__form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #999;
}

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

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

.page-login__checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.page-login__forgot-password-link {
    color: #0047AB;
    text-decoration: none;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    background: #0047AB;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.page-login__submit-button:hover {
    background-color: #003380;
}

.page-login__separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #888;
}

.page-login__separator::before, .page-login__separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e0e0e0;
}

.page-login__separator::before {
    left: 0;
}

.page-login__separator::after {
    right: 0;
}

.page-login__register-text {
    text-align: center;
    color: #555555;
}

.page-login__register-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

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

/* General Section Styling */
.page-login__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

.page-login__section-text {
    font-size: 1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background: #0047AB; /* Dark background */
    color: #ffffff;
}

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

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

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

.page-login__benefit-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-login__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
    padding: 80px 0;
    background: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-login__read-more-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background: #FFD700;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__read-more-link:hover {
    background-color: #e6c200;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background: #0047AB; /* Dark background */
    color: #ffffff;
}

.page-login__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-question-text {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(0deg); /*  to "-" animation */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 25px;
}

.page-login__faq-answer-text {
    font-size: 1em;
    color: #f0f0f0;
    margin: 0;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    background: #1a1a1a; /* Light-ish dark background */
    color: #ffffff;
    text-align: center;
}

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

.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background: #FFD700;
    color: #000000;
    border: 2px solid #FFD700;
}

.page-login__btn-primary:hover {
    background: #e6c200;
    border-color: #e6c200;
}

.page-login__btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-login__btn-secondary:hover {
    background: #FFD700;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-content {
        padding: 30px;
        max-width: 90%;
    }
    .page-login__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Apply offset for mobile */
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__intro-text {
        font-size: 1em;
    }
    .page-login__form-title {
        font-size: 1.6em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description,
    .page-login__section-text {
        font-size: 0.95em;
        padding: 0 15px;
    }
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-login__benefit-image {
        max-width: 200px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-login__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Image responsive adaptions */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section, .page-login__card, .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* FAQ items padding adjustment for smaller screens */
    .page-login__faq-question,
    .page-login__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__hero-content {
        padding: 20px;
    }
    .page-login__form-title {
        font-size: 1.4em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}