/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Inherited from body via 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;
}

.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;
}

.page-login__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for Login/Register buttons */
    color: #FFFF00; /* Custom font color for Login/Register buttons */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

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

.page-login__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
}

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

.page-login__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Fallback for image */
}

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

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
}

.page-login__main-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

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

.page-login__login-form-wrapper {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    margin: 0 auto;
    margin-top: 40px;
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-weight: bold;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.page-login__login-button {
    width: 100%;
    font-size: 1.2em;
}

.page-login__register-link {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.page-login__forgot-password {
    margin-top: 20px;
    text-align: center;
}

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

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

/* Advantages Section */
.page-login__advantages-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Ensure background contrast for text */
    color: #ffffff;
}

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

.page-login__advantage-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__advantage-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

/* Guide Section */
.page-login__guide-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-login__step-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    box-sizing: border-box;
}

.page-login__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00;
    background-color: #C30808;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.page-login__step-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-login__forgot-password-cta {
    margin-top: 60px;
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.page-login__forgot-password-cta p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Ensure background contrast for text */
    color: #ffffff;
}

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

.page-login__benefit-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    box-sizing: border-box;
}

.page-login__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain; /* Ensure icons are contained */
}

.page-login__benefit-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-login__feature-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    box-sizing: border-box;
}

.page-login__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-login__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-login__responsible-gaming-cta {
    margin-top: 60px;
    text-align: center;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Ensure background contrast for text */
    color: #ffffff;
}

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
}

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

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

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

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

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #017439;
    text-align: center;
    color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__hero-description {
        font-size: 1.2em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        padding: 25px;
        max-width: 90%;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__form-input {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-login__advantages-grid,
    .page-login__guide-steps,
    .page-login__benefits-list,
    .page-login__security-features {
        grid-template-columns: 1fr;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
    .page-login__advantage-title,
    .page-login__step-title,
    .page-login__benefit-title,
    .page-login__feature-title {
        font-size: 1.5em;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-login__btn-primary, .page-login__btn-secondary {
        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-wrap: wrap !important;
        gap: 10px;
    }
    .page-login__hero-section {
      padding-top: var(--header-offset, 120px) !important;
    }
    .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 {
        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__hero-description {
        font-size: 0.9em;
    }
    .page-login__form-title {
        font-size: 1.5em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__advantage-title,
    .page-login__step-title,
    .page-login__benefit-title,
    .page-login__feature-title {
        font-size: 1.3em;
    }
    .page-login__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-login__faq-answer {
        padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 8px 15px 15px;
    }
}