/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fixed header spacing */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop: header offset */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px; /* Ensure hero section has height */
}

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

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

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

.page-login__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: #FFD36B; /* Glow color for emphasis */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF6D6; /* Text Main */
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #FFE082 0%, #E6B02B 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Glow color */
    border: 2px solid #FFD36B; /* Glow color border */
    margin-left: 20px;
}

.page-login__btn-secondary:hover {
    background-color: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
}

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

.page-login__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: #FFD36B; /* Glow color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 211, 107, 0.3);
}

.page-login__section-description {
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Login Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__form-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-login__form-image {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__login-form {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFF6D6; /* Text Main */
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12; /* Border */
    border-radius: 6px;
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    outline: none;
    border-color: #FFD36B; /* Glow color */
    box-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

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

.page-login__forgot-password,
.page-login__register-link {
    color: #FFD36B; /* Glow color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
    color: #FFE082;
    text-decoration: underline;
}

.page-login__btn-submit {
    width: 100%;
    font-size: 1.1em;
}

/* Features Section */
.page-login__features-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-login__feature-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__feature-icon {
    width: 100%; /* Ensure images take full width of card */
    max-width: 250px; /* Limit max width */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block; /* Ensure block display for margin auto */
    margin-left: auto;
    margin-right: auto;
}

.page-login__feature-title {
    font-size: 1.5em;
    color: #FFD36B; /* Glow color */
    margin-bottom: 15px;
}

.page-login__feature-description {
    color: #FFF6D6; /* Text Main */
    font-size: 1em;
}

/* Account Management Section */
.page-login__account-management {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-login__management-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.page-login__management-title {
    font-size: 1.4em;
    color: #FFD36B; /* Glow color */
    margin-bottom: 10px;
}

.page-login__management-text {
    color: #FFF6D6; /* Text Main */
    font-size: 0.95em;
}

.page-login__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-login__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1A1A1A; /* Slightly darker background for question */
    color: #FFD36B; /* Glow color */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    margin: 0;
    color: #FFD36B; /* Glow color */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus becomes an X-like symbol when active */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main */
    font-size: 0.95em;
}

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

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

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__responsible-gaming-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-login__responsible-gaming-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__responsible-gaming-text {
    flex: 1;
    min-width: 300px;
    color: #FFF6D6; /* Text Main */
}

.page-login__sub-title {
    font-size: 1.8em;
    color: #FFD36B; /* Glow color */
    margin-bottom: 20px;
}

.page-login__responsible-gaming-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-login__responsible-gaming-list li {
    margin-bottom: 10px;
}

.page-login__responsible-gaming-list strong {
    color: #FFD36B; /* Glow color */
}

.page-login__keyword {
    color: #FFD36B;
    font-weight: bold;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__form-image,
    .page-login__responsible-gaming-image {
        max-width: 100%;
    }
    .page-login__form-wrapper,
    .page-login__responsible-gaming-content {
        flex-direction: column;
    }
    .page-login__form-image {
        order: -1; /* Image above form on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 100px) !important; /* Mobile: header offset */
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-submit {
        padding: 12px 20px;
        font-size: 1em;
        margin-left: 0;
        margin-bottom: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__form-wrapper {
        padding: 25px;
    }
    .page-login__form-image {
        max-width: 100%;
        height: auto;
    }
    .page-login__feature-card {
        padding: 20px;
    }
    .page-login__feature-icon {
        max-width: 150px;
    }
    .page-login__management-item {
        padding: 20px;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    .page-login__responsible-gaming-content {
        padding: 25px;
    }
    .page-login__responsible-gaming-image {
        max-width: 100%;
        height: auto;
    }
    .page-login__sub-title {
        font-size: 1.5em;
    }

    /* Images responsiveness for mobile */
    .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__form-wrapper,
    .page-login__responsible-gaming-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__hero-section {
        min-height: 400px;
    }
}