/* style/login.css */

/* --- General Page Styles --- */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared might define body */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* --- Hero Section --- */
.page-login__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for hero */
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    position: relative;
    overflow: hidden;
    color: #333333;
}

.page-login__hero-content {
    flex: 1;
    padding: 0 40px;
    max-width: 600px;
    z-index: 1;
}

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

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

.page-login__login-form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-top: 30px;
}

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

.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 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    flex-direction: column; /* Stack buttons vertically for better mobile experience */
    gap: 15px;
    margin-bottom: 20px;
}

.page-login__btn-login,
.page-login__btn-register {
    display: block;
    width: 100%; /* Full width for buttons */
    padding: 15px 25px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-login {
    background-color: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login font color */
    border: none;
}

.page-login__btn-login:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-login__btn-register {
    background-color: #017439; /* Brand color for register */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-login__btn-register:hover {
    background-color: #005c2e;
    transform: translateY(-2px);
}

.page-login__forgot-password {
    text-align: center;
    color: #017439;
    font-size: 0.95em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #005c2e;
    text-decoration: underline;
}

.page-login__hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 40px;
    z-index: 0;
}

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

/* --- Benefits Section --- */
.page-login__benefits-section {
    padding: 80px 0;
    color: #ffffff; /* Text color for dark background */
}

.page-login__dark-bg {
    background-color: #017439; /* Main brand color for dark sections */
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333;
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
    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: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-login__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-login__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
    color: #555555;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Guide Section --- */
.page-login__guide-section {
    padding: 80px 0;
    color: #333333;
}

.page-login__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-login__guide-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #017439;
}

.page-login__guide-step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__guide-item p {
    color: #555555;
}

.page-login__cta-area {
    text-align: center;
    margin-top: 60px;
}

.page-login__cta-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333333;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary:hover {
    background-color: #005c2e;
    transform: translateY(-2px);
}

/* --- Security Measures Section --- */
.page-login__security-measures {
    padding: 80px 0;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-login__security-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ffffff;
    color: #ffffff;
}

.page-login__security-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__security-item p {
    color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-login__faq-section {
    padding: 80px 0;
    display: flex;
    flex-wrap: wrap; /* Allow image to wrap on smaller screens */
    align-items: flex-start; /* Align items to the start for better layout */
    justify-content: space-between;
    color: #333333;
}

.page-login__faq-section .page-login__container {
    flex: 1;
    max-width: 700px; /* Limit FAQ content width */
    margin-right: 40px; /* Space between FAQ and image */
}

.page-login__faq-list {
    margin-top: 40px;
}

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

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

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

.page-login__faq-title {
    font-size: 1.1em;
    margin: 0;
    color: #017439;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

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

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px 25px; /* Add bottom padding when open */
}

.page-login__support-cta {
    text-align: center;
    margin-top: 40px;
}

.page-login__support-image-container {
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__support-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* --- Responsible Gaming Section --- */
.page-login__responsible-gaming {
    padding: 60px 0;
    text-align: center;
}

.page-login__responsible-gaming .page-login__section-title,
.page-login__responsible-gaming .page-login__section-description {
    color: #ffffff;
}

.page-login__responsible-gaming .page-login__btn-secondary {
    margin-top: 30px;
    border-color: #ffffff; /* White border for contrast on dark background */
    color: #ffffff;
    background-color: transparent;
}

.page-login__responsible-gaming .page-login__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* --- Register CTA Section --- */
.page-login__register-cta {
    padding: 80px 0;
    text-align: center;
}

.page-login__register-image-container {
    margin-top: 40px;
    text-align: center;
}

.page-login__register-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-login__hero-section {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-login__hero-content {
        padding: 0;
        text-align: center;
        max-width: 100%;
    }

    .page-login__login-form-wrapper {
        margin-left: auto;
        margin-right: auto;
    }

    .page-login__hero-image-container {
        padding-right: 0;
        margin-top: 40px;
    }

    .page-login__faq-section {
        flex-direction: column;
    }

    .page-login__faq-section .page-login__container {
        margin-right: 0;
        max-width: 100%;
    }

    .page-login__support-image-container {
        margin-top: 40px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-login__main-title {
        font-size: 2.2em;
    }

    .page-login__section-title {
        font-size: 2em;
    }

    .page-login__intro-text,
    .page-login__section-description,
    .page-login__cta-text {
        font-size: 1em;
    }

    .page-login__login-form-wrapper {
        padding: 20px;
    }

    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-primary,
    .page-login__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-login__form-actions {
      flex-direction: column;
      gap: 10px;
    }

    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__guide-section,
    .page-login__faq-section,
    .page-login__responsible-gaming,
    .page-login__register-cta {
        padding: 40px 0;
    }

    .page-login__container {
        padding: 0 15px;
    }

    .page-login__guide-list,
    .page-login__security-list,
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__hero-image-container,
    .page-login__support-image-container,
    .page-login__register-image-container,
    .page-login__benefit-card,
    .page-login__security-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    /* Ensure no horizontal scroll for content areas */
    .page-login__section,
    .page-login__container,
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__guide-section,
    .page-login__faq-section,
    .page-login__responsible-gaming,
    .page-login__register-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-login__faq-answer {
      padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
      padding: 15px 15px 25px;
    }
    .page-login__faq-question {
      padding: 15px;
    }
}