/* style/login.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #1a1a1a; /* Assuming dark background from shared.css */
    --background-light: #ffffff;
    --form-bg: #2a2a2a;
    --input-bg: #3a3a3a;
    --input-border: #555555;
    --button-hover-primary: #e6c200;
    --button-hover-secondary: #a30000;
    --card-bg: #f9f9f9;
    --card-border: #e0e0e0;
    --section-padding-desktop: 80px 0;
    --section-padding-mobile: 40px 0;
    --container-max-width: 1200px;
}

.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default for light sections */
    background-color: var(--background-dark); /* Main body background, handled by shared.css */
}

.page-login__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-login__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-login__hero-section {
    position: relative;
    width: 100%;
    padding: var(--section-padding-desktop);
    padding-top: var(--header-offset, 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('[GALLERY:hero:1920x1080:tha_bet_88,login_background,abstract_gold_red]') no-repeat center center/cover;
}

.page-login__hero-container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.page-login__main-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-login__form-wrapper {
    background: var(--background-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    color: var(--text-dark);
}

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

.page-login__label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.page-login__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--background-light);
    color: var(--text-dark);
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__input::placeholder {
    color: #888888;
}

.page-login__input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    outline: none;
}

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

.page-login__remember-me input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.page-login__remember-me label {
    color: var(--text-dark);
}

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

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

.page-login__submit-button,
.page-login__register-button {
    display: block;
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-login__btn-primary:hover {
    background-color: var(--button-hover-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-login__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}

.page-login__btn-secondary:hover {
    background-color: var(--button-hover-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.4);
}

.page-login__register-cta {
    margin-top: 30px;
    text-align: center;
}

.page-login__register-cta p {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 16px;
}

/* General Section Styles */
.page-login__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.page-login__section-description {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-login__benefits-section,
.page-login__troubleshooting-section,
.page-login__register-prompt-section {
    padding: var(--section-padding-desktop);
}

.page-login__guide-section,
.page-login__security-section,
.page-login__faq-section {
    padding: var(--section-padding-desktop);
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-login__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-login__card {
    background-color: var(--card-bg);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-image,
.page-login__security-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__benefit-title,
.page-login__troubleshooting-title,
.page-login__security-tip-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-login__card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-login__card p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-login__card p a:hover {
    text-decoration: underline;
}

.page-login__guide-steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 50px;
}

.page-login__guide-step {
    text-align: center;
    max-width: 350px;
}

.page-login__step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--background-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 25px auto;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

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

.page-login__guide-step p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
}

.page-login__register-now-button {
    display: block;
    margin: 50px auto 0 auto;
    max-width: 400px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-login__register-now-button:hover {
    background-color: var(--button-hover-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

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

.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--background-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--background-light);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-dark);
}

.page-login__faq-question:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.page-login__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-login__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
    color: var(--primary-color);
    transform: rotate(180deg);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background-color: var(--card-bg);
    color: var(--text-dark);
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid var(--card-border);
    border-radius: 0 0 10px 10px;
}

.page-login__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
    color: var(--text-dark);
}

.page-login__faq-answer p a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-login__faq-answer p a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 42px;
    }
    .page-login__intro-description {
        font-size: 18px;
    }
    .page-login__section-title {
        font-size: 32px;
    }
    .page-login__section-description {
        font-size: 16px;
    }
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid,
    .page-login__security-tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .page-login__guide-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    .page-login__guide-step {
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: var(--section-padding-mobile);
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__main-title {
        font-size: 36px;
        line-height: 1.2;
    }
    .page-login__intro-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-login__form-wrapper {
        padding: 30px 20px;
    }
    .page-login__submit-button,
    .page-login__register-button,
    .page-login__register-now-button {
        font-size: 16px;
        padding: 12px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__section-title {
        font-size: 28px;
    }
    .page-login__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-login__benefits-section,
    .page-login__troubleshooting-section,
    .page-login__register-prompt-section,
    .page-login__guide-section,
    .page-login__security-section,
    .page-login__faq-section {
        padding: var(--section-padding-mobile) 15px;
    }
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid,
    .page-login__security-tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__guide-steps {
        flex-direction: column;
        gap: 20px;
    }
    .page-login__guide-step {
        max-width: 100%;
    }
    .page-login__step-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-login__step-title {
        font-size: 20px;
    }
    .page-login__guide-step p {
        font-size: 15px;
    }
    .page-login__register-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-question h3 {
        font-size: 16px;
    }
    .page-login__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px !important;
    }
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__container,
    .page-login__hero-container,
    .page-login__form-wrapper,
    .page-login__benefits-section,
    .page-login__troubleshooting-section,
    .page-login__register-prompt-section,
    .page-login__guide-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid,
    .page-login__security-tips-grid,
    .page-login__guide-steps,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }
    .page-login__form-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}