/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--dark-bg-1) */
}

/* Sections */
.page-login__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px; /* Minimum height for hero section */
}

.page-login__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Overlay for readability */
    z-index: 1;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-login__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.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;
    font-weight: bold;
    color: #ffffff;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #26A9E0;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

.page-login__checkbox-label {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-login__checkbox-input {
    accent-color: #26A9E0; /* Checkbox color */
}

.page-login__forgot-password-link {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #ffffff;
}

.page-login__register-prompt {
    margin-top: 25px;
    color: #f0f0f0;
    font-size: 1em;
}

.page-login__register-link {
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #ffffff;
}

/* General button styles */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    border: 2px solid transparent;
}

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

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

.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* General section styles */
.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

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

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

/* Card styles */
.page-login__card {
    background: #ffffff; /* Card background for light sections */
    color: #333333; /* Dark text for light card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-login__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-login__card-text {
    font-size: 1em;
    margin-bottom: 15px;
}

.page-login__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    color: #333333;
}

.page-login__list li {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.page-login__list-strong {
    font-weight: bold;
    color: #26A9E0;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
    background-color: #f8f9fa; /* Light background */
}

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

.page-login__benefit-image,
.page-login__security-image,
.page-login__responsible-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Process Section */
.page-login__process-section {
    padding: 80px 0;
    color: #ffffff; /* Light text for dark background */
    background-color: #1a1a1a; /* Dark background */
}

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

.page-login__step-card {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-login__troubleshooting {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__troubleshooting-text {
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: center;
}

.page-login__troubleshooting .page-login__list {
    color: #f0f0f0;
    list-style: outside;
}

.page-login__troubleshooting .page-login__list li {
    color: #f0f0f0;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Light background */
}

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

.page-login__security-tips {
    margin-top: 60px;
    padding: 40px;
    background: #f0f8ff; /* Light blue background */
    border-radius: 10px;
    border: 1px solid #26A9E0;
}

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

.page-login__security-tips-text {
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

.page-login__security-tips .page-login__list {
    color: #333333;
}

.page-login__security-tips .page-login__list li {
    color: #333333;
}

/* Responsible Gambling Section */
.page-login__responsible-gambling-section {
    padding: 80px 0;
    color: #ffffff; /* Light text for dark background */
    background-color: #1a1a1a; /* Dark background */
}

.page-login__responsible-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-login__responsible-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

.page-login__responsible-text-block {
    flex: 2;
    min-width: 300px;
    color: #f0f0f0;
}

.page-login__responsible-text-block .page-login__card-title {
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-login__responsible-text-block .page-login__list {
    color: #f0f0f0;
}

.page-login__responsible-text-block .page-login__list li {
    color: #f0f0f0;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
    background-color: #f8f9fa; /* Light background */
}

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

.page-login__faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f0f8ff; /* Light blue for question */
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

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

.page-login__faq-item summary {
    list-style: none; /* Hide default marker for Firefox */
}

.page-login__faq-item summary::marker {
    display: none; /* Hide default marker for other browsers */
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-login__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    background-color: #26A9E0; /* Brand color background */
}

.page-login__cta-section .page-login__section-title {
    color: #ffffff;
}

.page-login__cta-section .page-login__section-description {
    color: #f0f0f0;
}

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

/* Copyright Section */
.page-login__copyright-section {
    padding: 30px 0;
    background-color: #0d0d0d;
    color: #aaaaaa;
    text-align: center;
    font-size: 0.9em;
}

.page-login__copyright-text {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 80px 15px;
        min-height: 500px;
    }
    .page-login__hero-title {
        font-size: 2.5em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        padding: 30px;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__benefits-section,
    .page-login__process-section,
    .page-login__security-section,
    .page-login__responsible-gambling-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 60px 0;
    }
    .page-login__benefits-grid,
    .page-login__steps-grid,
    .page-login__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__responsible-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-login__responsible-image {
        max-width: 100%;
    }
    .page-login__troubleshooting,
    .page-login__security-tips {
        padding: 25px;
    }
    .page-login__troubleshooting-title,
    .page-login__security-tips-title {
        font-size: 1.5em;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 10px 20px 15px 20px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .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__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* All images and image containers */
    .page-login img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section,
    .page-login__login-form-wrapper,
    .page-login__benefits-grid,
    .page-login__steps-grid,
    .page-login__security-grid,
    .page-login__responsible-content,
    .page-login__faq-list,
    .page-login__cta-buttons,
    .page-login__troubleshooting,
    .page-login__security-tips {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Ensure no horizontal scroll */
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    /* If there were video, this would apply */
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}