/* style/login.css */

/* Variables from shared.css might be available, using direct colors for now as per instructions */
:root {
    --primary-color: #1A73E8;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --dark-section-bg: #1A73E8; /* Using primary color for dark sections */
    --light-section-bg: #f8f9fa; /* A very light grey for contrast with dark text */
}

/* General page-login styling */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Assuming body background is dark */
    background-color: var(--dark-bg, #0d0d0d); /* Fallback for dark background */
}

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

.page-login__section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* Ensure content does not overflow */
}

.page-login__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* 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 */
    padding-bottom: 80px;
    overflow: hidden;
    box-sizing: border-box;
}

.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); /* Dark overlay for text readability */
    z-index: 2;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
}

.page-login__main-title {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.page-login__login-form-wrapper {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
}

.page-login__form-title {
    font-size: 2em;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: bold;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: bold;
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1em;
    box-sizing: border-box;
}

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

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

.page-login__remember-me {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

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

.page-login__forgot-password-link {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none; /* Reset button border */
    box-sizing: border-box;
}

.page-login__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-login__btn-primary:hover {
    background-color: #155cb8; /* manually darkened */
    border-color: #155cb8;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-login__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark); /* Ensure contrast on hover */
}

.page-login__login-button {
    width: 100%;
    margin-bottom: 20px;
}

.page-login__register-cta {
    color: var(--text-light);
    font-size: 0.95em;
}

.page-login__register-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Why Choose Us Section */
.page-login__why-choose-us .page-login__section-description {
    color: var(--text-light);
}

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

.page-login__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__feature-icon {
    width: 100%; /* Ensure image fills container */
    height: auto;
    max-width: 400px; /* Limit max width of image */
    max-height: 300px; /* Limit max height of image */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__feature-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__feature-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Benefits Section */
.page-login__dark-section {
    background-color: var(--dark-section-bg); /* Primary color as background */
    color: var(--text-light);
}

.page-login__dark-section .page-login__section-title {
    color: var(--secondary-color);
}

.page-login__dark-section .page-login__section-description {
    color: rgba(255, 255, 255, 0.9);
}

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

.page-login__benefits-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__benefits-item-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__benefits-item-text {
    color: rgba(255, 255, 255, 0.85);
}

/* How to Log In Section */
.page-login__how-to-login {
    background-color: var(--light-section-bg); /* Light background for contrast */
    color: var(--text-dark);
}

.page-login__how-to-login .page-login__section-title {
    color: var(--primary-color);
}

.page-login__how-to-login .page-login__section-description {
    color: var(--text-dark);
}

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

.page-login__step-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-login__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-login__step-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__step-text {
    color: var(--text-dark);
}

.page-login__how-to-login-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Troubleshooting Section */
.page-login__troubleshooting {
    background-color: var(--light-section-bg); /* Light background for contrast */
    color: var(--text-dark);
}

.page-login__troubleshooting .page-login__section-title {
    color: var(--primary-color);
}

.page-login__troubleshooting .page-login__section-description {
    color: var(--text-dark);
}

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

.page-login__troubleshooting-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-login__troubleshooting-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__troubleshooting-text {
    color: var(--text-dark);
}

.page-login__support-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-login__support-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Responsible Gaming Section */
.page-login__responsible-gaming {
    background-color: var(--dark-bg, #0d0d0d); /* Ensure dark background */
    color: var(--text-light);
}

.page-login__responsible-gaming .page-login__section-title {
    color: var(--secondary-color);
}

.page-login__responsible-gaming .page-login__section-description {
    color: rgba(255, 255, 255, 0.8);
}

.page-login__responsible-gaming-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* FAQ Section */
.page-login__faq-section {
    background-color: var(--dark-section-bg); /* Primary color as background */
    color: var(--text-light);
}

.page-login__faq-section .page-login__section-title {
    color: var(--secondary-color);
}

.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.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-login__faq-title {
    font-size: 1.25em;
    color: var(--text-light);
    margin: 0;
    font-weight: bold;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    color: var(--secondary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes an X or similar */
}

/* Final CTA Section */
.page-login__cta-final {
    background-color: var(--light-section-bg);
    color: var(--text-dark);
    text-align: center;
}

.page-login__cta-final .page-login__section-title {
    color: var(--primary-color);
}

.page-login__cta-final .page-login__section-description {
    color: var(--text-dark);
}

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

.page-login__cta-button {
    min-width: 180px;
    padding: 15px 30px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-login__cta-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Images - Global styles for content area images */
.page-login img:not(.page-login__hero-background-image) {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their dimensions without distortion */
}

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

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        padding: 30px;
        max-width: 100%;
        margin: 0 15px; /* Add side padding */
    }

    .page-login__section {
        padding: 60px 0;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__features-grid,
    .page-login__benefits-list,
    .page-login__steps-grid,
    .page-login__troubleshooting-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__feature-item,
    .page-login__benefits-item,
    .page-login__step-item,
    .page-login__troubleshooting-item {
        padding: 25px;
    }

    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-title {
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add side padding to buttons container */
    }
    .page-login__cta-button {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Mobile specific image/video/container rules */
    .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,
    .page-login__login-form-wrapper,
    .page-login__cta-buttons {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Adjust container padding for mobile sections if needed */
    .page-login__container {
        padding: 0 15px;
    }
}