/* style/login.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --background-dark: #0a0a0a;
    --background-light: #f5f5f5;
}

.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for the page, assuming dark body background */
    background-color: var(--background-dark);
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background: var(--background-dark) url('[GALLERY:bg:1920x1080:mn88,login_background,abstract_pattern]') no-repeat center center/cover;
    color: var(--text-on-dark);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-login__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    opacity: 0.9;
}

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--secondary-color);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-login__form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.5);
}

.page-login__form-options {
    display: flex;
    justify-content: flex-end;
}

.page-login__forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__btn-primary {
    background-color: var(--login-button-color);
    color: var(--text-on-dark);
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-login__register-text {
    margin-top: 20px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-login__register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__hero-image-wrapper {
    display: none; /* Hidden on desktop for form focus, visible on larger screens or as background */
}

.page-login__hero-image {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Sections */
.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.8;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-on-light);
}

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

.page-login__benefit-card {
    background: rgba(38, 169, 224, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(38, 169, 224, 0.3);
    color: var(--text-on-dark);
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

.page-login__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
}

.page-login__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-login__card-text {
    font-size: 1em;
    line-height: 1.5;
    opacity: 0.8;
}

/* Troubleshooting Section (FAQ) */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-on-dark);
}

.page-login__faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.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: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

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

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

.page-login__faq-answer {
    padding: 15px 25px 25px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Register CTA Section */
.page-login__register-cta-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-on-light);
}

.page-login__register-cta-content {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
}

.page-login__register-cta-text-wrapper {
    max-width: 600px;
    text-align: left;
}

.page-login__register-cta-text-wrapper .page-login__section-title {
    text-align: left;
    color: var(--primary-color);
}

.page-login__register-cta-text-wrapper .page-login__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    color: var(--text-on-light);
}

.page-login__btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 20px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-login__register-cta-image-wrapper {
    flex-shrink: 0;
}

.page-login__cta-image {
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Download App Section */
.page-login__download-app-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-on-dark);
}

.page-login__download-app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
}

.page-login__download-app-image-wrapper {
    flex-shrink: 0;
}

.page-login__app-image {
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__download-app-text-wrapper {
    max-width: 600px;
    text-align: left;
}

.page-login__download-app-text-wrapper .page-login__section-title {
    text-align: left;
    color: var(--primary-color);
}

.page-login__download-app-text-wrapper .page-login__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    color: var(--text-on-dark);
}

/* Responsive Styles */
@media (min-width: 769px) {
    .page-login__hero-section .page-login__container {
        display: flex;
        align-items: center;
        gap: 50px;
        text-align: left;
    }
    .page-login__hero-content {
        text-align: left;
        align-items: flex-start;
        max-width: 50%;
    }
    .page-login__login-form-wrapper {
        margin: 0;
    }
    .page-login__hero-image-wrapper {
        display: block;
        max-width: 50%;
    }
    .page-login__hero-title {
        font-size: 3.8em;
    }
    .page-login__hero-description {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__register-cta-content, .page-login__download-app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__register-cta-text-wrapper, .page-login__download-app-text-wrapper {
        text-align: center;
    }
    .page-login__register-cta-text-wrapper .page-login__section-title, 
    .page-login__download-app-text-wrapper .page-login__section-title {
        text-align: center;
    }
    .page-login__register-cta-text-wrapper .page-login__section-description, 
    .page-login__download-app-text-wrapper .page-login__section-description {
        text-align: center;
    }
    .page-login__btn-secondary {
        margin: 20px auto 0 auto;
    }
    .page-login__download-app-content {
        flex-direction: column-reverse; /* Image above text for download section */
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-login__hero-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        padding: 30px 20px;
    }
    .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__benefits-section, .page-login__troubleshooting-section, 
    .page-login__register-cta-section, .page-login__download-app-section {
        padding: 50px 0;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__benefit-card, .page-login__faq-item {
        padding: 20px;
    }
    .page-login__benefit-icon {
        width: 60px;
        height: 60px;
    }
    .page-login__card-title {
        font-size: 1.3em;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    .page-login__cta-image, .page-login__app-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__register-cta-content, .page-login__download-app-content, 
    .page-login__benefits-grid, .page-login__faq-list, 
    .page-login__login-form-wrapper, .page-login__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__register-cta-text-wrapper .page-login__btn-secondary,
    .page-login__download-app-text-wrapper .page-login__btn-secondary {
        width: auto !important;
        max-width: fit-content !important;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__login-form-wrapper {
        padding: 25px 15px;
    }
    .page-login__btn-primary, .page-login__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-login__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-login__faq-answer {
        padding: 8px 15px 15px 15px;
    }
}

/* Color Contrast Fixes */
.page-login__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-on-dark);
}

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

.page-login__benefit-card:hover {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}