/* style/login.css */

/* Base styles for page-login content */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    color: #ffffff;
}

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

.page-login__hero-section > .page-login__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-login__hero-button {
    display: inline-block;
    margin: 0 10px 10px 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Form Section */
.page-login__form-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

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

.page-login__form-image-wrapper {
    flex: 1;
    min-width: 400px; /* Ensure image is not too small on desktop */
}

.page-login__form-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-login__form-wrapper {
    flex: 1;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.page-login__form-intro {
    margin-bottom: 30px;
    color: #555555;
}

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

.page-login__form-group {
    display: flex;
    flex-direction: column;
}

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

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

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

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

.page-login__checkbox-container {
    display: block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page-login__checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.page-login__checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkmark {
    background-color: #ccc;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark {
    background-color: #26A9E0;
}

.page-login__checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark:after {
    display: block;
}

.page-login__checkbox-container .page-login__checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95em;
}

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

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 20px;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-login__section-title--white {
    color: #FFFFFF;
}

.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: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
}

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

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

/* Security Section */
.page-login__security-section {
    padding: 80px 20px;
    background-color: #FFFFFF;
}

.page-login__security-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-login__security-content {
    flex: 1;
}

.page-login__security-image-wrapper {
    flex: 1;
    min-width: 400px; /* Ensure image is not too small on desktop */
}

.page-login__security-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-login__security-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #555555;
}

.page-login__security-list li::before {
    content: '✓';
    color: #26A9E0;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsible Gambling Section */
.page-login__responsible-gambling-section {
    padding: 80px 20px;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-login__responsible-gambling-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-direction: row-reverse; /* Reverse order for layout */
}

.page-login__responsible-gambling-content {
    flex: 1;
}

.page-login__responsible-gambling-image-wrapper {
    flex: 1;
    min-width: 400px; /* Ensure image is not too small on desktop */
}

.page-login__responsible-gambling-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-login__responsible-gambling-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-login__responsible-gambling-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #f0f0f0;
}

.page-login__responsible-gambling-list li::before {
    content: '✓';
    color: #FFFFFF;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

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

.page-login__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #f0f0f0;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(0deg); /* '−' is already rotated, so no additional rotation */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
}

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

.page-login__faq-answer p {
    margin: 0;
}

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

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #26A9E0;
}

.page-login__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
}

.page-login__text-block--white {
    color: #f0f0f0;
}

/* Buttons */
.page-login__btn-primary {
    background: #EA7C07; /* Custom color for login */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-login__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
    background: #e0f4ff;
    color: #208bc4;
    border-color: #208bc4;
}

.page-login__btn-secondary--white {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
}

.page-login__btn-secondary--white:hover {
    background: #e0f4ff;
    color: #208bc4;
    border-color: #e0f4ff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__form-layout,
    .page-login__security-layout,
    .page-login__responsible-gambling-layout {
        flex-direction: column;
        text-align: center;
    }
    .page-login__form-image-wrapper,
    .page-login__security-image-wrapper,
    .page-login__responsible-gambling-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-login__security-content,
    .page-login__responsible-gambling-content {
        order: 2;
    }
    .page-login__security-image-wrapper,
    .page-login__responsible-gambling-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
    .page-login__security-list,
    .page-login__responsible-gambling-list {
        text-align: left;
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__hero-button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 0 15px 0;
    }
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__responsible-gambling-section,
    .page-login__faq-section {
        padding: 40px 15px;
    }
    .page-login__form-wrapper {
        padding: 30px 20px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-login__benefit-card {
        padding: 20px;
    }
    .page-login__benefit-title {
        font-size: 1.3em;
    }
    .page-login__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-login__faq-answer {
        padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 15px;
    }

    /* Image, Video, Button Mobile Adaptations */
    .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;
        overflow-x: hidden !important;
    }
    .page-login__hero-section,
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__responsible-gambling-section,
    .page-login__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-login__login-form button,
    .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;
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow-x: hidden !important;
    }
    .page-login__cta-buttons {
        display: flex;
        flex-direction: column;
    }
    .page-login__form-layout {
        gap: 20px;
    }
    .page-login__form-image-wrapper {
        margin-bottom: 20px;
    }
}