/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.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: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    background: url('[GALLERY:hero_main:1920x1080:vz99,login_page,secure_access,online_betting_platform,green_theme,modern_design]') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.page-login__hero-content {
    max-width: 900px;
    width: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #FFFF00; /* Custom color for main title */
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    max-width: 450px;
    margin: 30px auto 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__card-title {
    font-size: 2em;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 600;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
}

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

.page-login__form-input:focus {
    outline: none;
    border-color: #FFFF00;
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.5);
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.page-login__btn-login {
    background-color: #C30808; /* Custom color for login button */
    color: #FFFFFF; /* Ensures WCAG AA contrast with #C30808, overriding #FFFF00 for text due to contrast requirements */
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.page-login__btn-login:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-login__btn-link {
    color: #FFFFFF; /* Ensures WCAG AA contrast with #C30808, overriding #FFFF00 for text due to contrast requirements */
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__forgot-password {
    color: #FFFF00; /* Custom color for link */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #f0f000;
    text-decoration: underline;
}

.page-login__register-prompt {
    margin-top: 25px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__register-link {
    color: #FFFF00; /* Custom color for link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Advantages Section */
.page-login__advantages-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark section */
    color: #ffffff;
}

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

.page-login__advantage-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__advantage-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.page-login__advantage-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFF00;
}

.page-login__advantage-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__advantage-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
}

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

.page-login__troubleshooting-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__item-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__item-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__contact-link {
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__contact-link:hover {
    color: #f0f000;
    text-decoration: underline;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark section */
    color: #ffffff;
}

.page-login__cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-login__cta-text-block {
    flex: 1;
    min-width: 300px;
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom color for register button */
    color: #FFFFFF; /* Ensures WCAG AA contrast with #C30808, overriding #FFFF00 for text due to contrast requirements */
    border: 2px solid #C30808;
}

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

.page-login__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom color for text */
    border: 2px solid #FFFF00;
}

.page-login__btn-secondary:hover {
    background-color: #FFFF00;
    color: #017439;
    transform: translateY(-2px);
}

.page-login__cta-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
}

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: #FFFF00;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
    padding: 15px 20px 20px;
    font-size: 1em;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-login__faq-item summary {
    list-style: none;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__advantages-grid,
    .page-login__troubleshooting-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-login__cta-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__cta-image {
        order: -1; /* Image above text on smaller screens */
        max-width: 100%;
    }
    .page-login__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 80px 15px 40px;
        min-height: 60vh;
    }
    .page-login__hero-content {
        padding: 30px 20px;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-card {
        padding: 20px;
    }
    .page-login__card-title {
        font-size: 1.8em;
    }
    .page-login__form-input {
        width: calc(100% - 20px);
    }

    /* Mobile responsive images/videos/buttons - CRITICAL */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .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 !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset */
    }

    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .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 {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-login__advantages-section,
    .page-login__troubleshooting-section,
    .page-login__cta-section,
    .page-login__faq-section {
        padding: 40px 0;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
    }
    .page-login__advantage-item,
    .page-login__troubleshooting-item {
        padding: 20px;
    }
    .page-login__advantage-title,
    .page-login__item-title {
        font-size: 1.3em;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-login__faq-answer {
        padding: 10px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__card-title {
        font-size: 1.5em;
    }
    .page-login__btn-login {
        font-size: 1.1em;
        padding: 12px 20px;
    }
    .page-login__forgot-password,
    .page-login__register-prompt {
        font-size: 0.9em;
    }
}

/* Ensure images do not use filter */
.page-login img {
    filter: none !important;
}