/* style/login.css */

/* Ensure main content has top padding to clear fixed header */
.page-login {
    padding-top: var(--header-offset, 120px); /* Default for desktop, adjusted by shared.js */
    background-color: #f8f9fa; /* Light background as body is default white */
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 20px 60px; /* Adjusted padding, top padding handled by main */
    text-align: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* Primary brand gradient */
    color: #ffffff;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-login__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Ensure text is above image */
}

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.3; /* Make image subtle in background */
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, crop if needed */
    filter: brightness(0.7); /* Darken image slightly to improve text contrast */
    display: block;
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffc107; /* Auxiliary color for highlight */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #e0e0e0;
}

.page-login__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Section Styling */
.page-login__section {
    padding: 60px 20px;
    border-bottom: 1px solid #e9ecef;
}

.page-login__section:last-of-type {
    border-bottom: none;
}

.page-login__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #007bff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-login__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Buttons */
.page-login__button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.page-login__button--primary {
    background-color: #ffc107; /* Auxiliary color */
    color: #000000; /* Dark text for contrast */
    border: 2px solid #ffc107;
}

.page-login__button--primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
}

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

.page-login__button--secondary:hover {
    background-color: #ffc107;
    color: #000000;
    transform: translateY(-2px);
}

.page-login__button--text {
    background: none;
    border: none;
    color: #007bff;
    padding: 5px 0;
    font-size: 1em;
    font-weight: 500;
    text-decoration: underline;
}

.page-login__button--text:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Login Process Section */
.page-login__ordered-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-login__list-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    padding-left: 80px;
    transition: transform 0.3s ease;
}

.page-login__list-item:hover {
    transform: translateY(-5px);
}

.page-login__list-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: 700;
}

.page-login__list-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-login__list-description {
    font-size: 1em;
    color: #555555;
}

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

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

.page-login__security-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-login__security-image {
    width: auto; /* Let HTML width attribute define base */
    height: auto; /* Let HTML height attribute define base */
    max-width: 100%; /* Ensure responsiveness */
    max-height: 300px; /* Limit height for better layout */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block; /* Ensure it behaves as a block element for margin auto */
    margin-left: auto;
    margin-right: auto;
}

.page-login__security-heading {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-login__security-text {
    font-size: 0.95em;
    color: #555555;
}

/* FAQ Section */
.page-login__faq {
    background-color: #eaf6ff; /* Light blue background for contrast */
}

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

.page-login__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For smooth transition of details */
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #007bff;
    cursor: pointer;
    background-color: #f0f8ff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or similar */
}

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

.page-login__faq-answer p {
    margin-bottom: 10px;
}

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

.page-login__faq-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-login__faq-image {
    width: 600px; /* This is 600x400, so >=200px */
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    display: block;
    margin: 0 auto;
}


/* Explore Section */
.page-login__explore {
    background-color: #fdfdfd;
}

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

.page-login__explore-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__explore-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-login__explore-heading {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-login__explore-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

.page-login__explore-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 15px;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__explore-image {
    width: 800px; /* This is 1000x750, so >=200px */
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__explore-cta .page-login__paragraph {
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-login__explore-cta .page-login__button {
    margin: 0 10px;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming {
    background-color: #f0f0f0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-image {
        /* Adjust for smaller screens if needed, but maintain >=200px */
        width: 100%;
        height: auto;
        max-height: 400px; /* Limit height for smaller devices */
    }
    .page-login__security-image,
    .page-login__faq-image,
    .page-login__explore-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-login {
        padding-top: var(--header-offset, 80px); /* Adjust default for mobile */
    }
    .page-login__hero-section {
        padding: 60px 15px 40px;
    }
    .page-login__hero-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__button {
        width: 100%;
        max-width: 300px;
    }
    .page-login__section {
        padding: 40px 15px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__paragraph {
        font-size: 1em;
    }
    .page-login__list-item {
        padding: 20px 20px 20px 65px;
        margin-bottom: 15px;
    }
    .page-login__list-item::before {
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }
    .page-login__list-title {
        font-size: 1.3em;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
    }
    .page-login__explore-grid {
        grid-template-columns: 1fr;
    }
    .page-login__explore-cta {
        padding: 30px 20px;
    }
    .page-login__explore-cta .page-login__paragraph {
        font-size: 1.1em;
    }
    .page-login__explore-cta .page-login__button {
        width: 100%;
        max-width: 280px;
        margin: 10px 0;
    }
    /* Critical: Ensure all img within .page-login are responsive and don't cause overflow */
    .page-login img {
        max-width: 100%;
        height: auto;
        /* Re-enforce the minimum size for all content images */
        min-width: 200px;
        min- /* Assuming a common aspect ratio for content images */
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-login__list-title {
        font-size: 1.2em;
    }
    .page-login__faq-question {
        font-size: 1em;
    }
}