/* style/login.css */

/* --- Variables --- */
:root {
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Accent color */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --light-bg-text: #333333; /* For sections with light background */
    --light-bg-color: #ffffff; /* Default light background */
}

/* --- Base Styles for .page-login scope --- */
.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--light-bg-text); /* Default text color for light backgrounds, overridden by dark sections */
    background-color: var(--background-color); /* Overall page background */
    line-height: 1.6;
}

.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: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 700px; /* Ensure sufficient height */
    padding: 10px 0 60px 0; /* body handles header offset, small top padding for visual */
    overflow: hidden;
    background-color: var(--background-color);
}

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) grayscale(0.2); /* Darken and desaturate slightly for text readability */
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    color: var(--text-main);
    padding: 20px;
    box-sizing: border-box;
}

.page-login__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-login__form-wrapper {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    max-width: 450px;
    margin: 0 auto;
}

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

.page-login__form-group {
    text-align: left;
}

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--deep-green-color);
    color: var(--text-main);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.page-login__form-input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

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

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.page-login__checkbox-label {
    color: var(--text-secondary);
}

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

.page-login__forgot-password-link:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-login__login-button {
    width: 100%;
    padding: 15px;
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-login__login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.page-login__register-text {
    color: var(--text-secondary);
    margin-top: 20px;
    font-size: 1em;
}

.page-login__register-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

/* --- Why Choose Section --- */
.page-login__why-choose-section {
    background-color: var(--light-bg-color);
    padding: 60px 0;
    color: var(--light-bg-text); /* Ensure text is dark on light background */
}

.page-login__why-choose-section .page-login__section-title {
    color: var(--primary-color);
}

.page-login__why-choose-section .page-login__section-description {
    color: var(--light-bg-text);
}

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

.page-login__feature-card {
    background-color: #ffffff; /* White background for cards */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-login__feature-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 150px; /* Max width for icons */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    object-fit: contain;
}

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

.page-login__feature-text {
    font-size: 1em;
    color: var(--light-bg-text);
}

/* --- How to Login Section --- */
.page-login__how-to-login-section {
    background-color: var(--card-bg); /* Dark background */
    padding: 60px 0;
}

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

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

.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-color: var(--deep-green-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-login__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-gradient);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--gold-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-login__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

.page-login__step-text {
    font-size: 1em;
    color: var(--text-secondary);
}

/* --- Troubleshooting Section --- */
.page-login__troubleshooting-section {
    background-color: var(--light-bg-color);
    padding: 60px 0;
    color: var(--light-bg-text);
}

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

.page-login__troubleshooting-section .page-login__section-description {
    color: var(--light-bg-text);
}

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

.page-login__troubleshoot-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

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

.page-login__troubleshoot-text {
    font-size: 1em;
    color: var(--light-bg-text);
    margin-bottom: 20px;
}

.page-login__troubleshoot-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__troubleshoot-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Benefits Section --- */
.page-login__benefits-section {
    background-color: var(--card-bg);
    padding: 60px 0;
}

.page-login__benefits-section .page-login__section-title {
    color: var(--gold-color);
}

.page-login__benefits-section .page-login__section-description {
    color: var(--text-secondary);
}

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

.page-login__benefit-item {
    background-color: var(--deep-green-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-login__benefit-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-login__benefit-title {
    font-size: 1.6em;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__benefit-text {
    font-size: 1em;
    color: var(--text-secondary);
}

/* --- Responsible Gaming Section --- */
.page-login__responsible-gaming-section {
    background-color: var(--light-bg-color);
    padding: 60px 0;
    color: var(--light-bg-text);
}

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

.page-login__responsible-gaming-section .page-login__section-description {
    color: var(--light-bg-text);
}

.page-login__responsible-list {
    list-style: disc;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 25px;
    color: var(--light-bg-text);
}

.page-login__responsible-item {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-login__responsible-item strong {
    color: var(--primary-color);
}

/* --- FAQ Section --- */
.page-login__faq-section {
    background-color: var(--card-bg);
    padding: 60px 0;
}

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

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

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

.page-login__faq-item {
    background-color: var(--deep-green-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-login__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    list-style: none; /* Remove default marker */
    position: relative;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
    /* For details, content is naturally hidden/shown. No need for max-height trick */
}

/* --- CTA Section --- */
.page-login__cta-section {
    background-color: var(--light-bg-color);
    padding: 60px 0;
    text-align: center;
    color: var(--light-bg-text);
}

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

.page-login__cta-section .page-login__section-description {
    color: var(--light-bg-text);
}

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

.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-login__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-login__btn-tertiary {
    background-color: var(--gold-color);
    color: #333333;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-tertiary:hover {
    background-color: var(--glow-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-content {
        padding: 15px;
    }
    .page-login__form-wrapper {
        padding: 25px;
    }
    .page-login__features-grid,
    .page-login__steps-grid,
    .page-login__troubleshoot-grid,
    .page-login__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 600px;
        padding-bottom: 40px;
    }
    .page-login__main-title {
        font-size: clamp(2em, 8vw, 2.8em); /* More aggressive scaling for mobile */
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__form-wrapper {
        padding: 20px;
        max-width: 100%;
        margin: 0 15px; /* Add side padding for form on mobile */
    }
    .page-login__features-grid,
    .page-login__steps-grid,
    .page-login__troubleshoot-grid,
    .page-login__benefits-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }
    .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;
    }
    .page-login__hero-section {
        padding-top: 10px !important; /* body already handles header-offset */
    }

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Buttons responsiveness */
    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-tertiary,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-login__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-login__responsible-list {
        padding-left: 20px;
    }
    .page-login__responsible-item {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-login__hero-section {
        min-height: 550px;
    }
    .page-login__main-title {
        font-size: clamp(1.8em, 10vw, 2.5em);
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__hero-description {
        font-size: 0.95em;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .page-login__login-button {
        padding: 12px;
        font-size: 1em;
    }
    .page-login__register-text {
        font-size: 0.9em;
    }
}