/* style/login.css */

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

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

.page-login__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1c 100%); /* Dark gradient background */
    overflow: hidden;
    position: relative;
}

.page-login__hero-section .page-login__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-login__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    text-align: left;
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #26A9E0; /* Brand color for main title */
}

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

.page-login__login-form-wrapper {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for form background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2e2e4a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
}

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

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #26A9E0; /* Highlight checkbox with brand color */
}

.page-login__checkbox-label {
    color: #f0f0f0;
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #1e87b7; /* Darker shade on hover */
}

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 14px 25px;
    background-color: #EA7C07; /* Custom color for login button */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn-primary:hover {
    background-color: #d16e06; /* Slightly darker on hover */
    transform: translateY(-2px);
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    color: #f0f0f0;
}

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

.page-login__register-link:hover {
    color: #1e87b7;
}

.page-login__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element */
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-login__benefits-section .page-login__section-title {
    color: #000000; /* Dark title for light background */
}
.page-login__benefits-section .page-login__section-description {
    color: #555555; /* Darker text for light background */
}


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

.page-login__benefit-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-login__benefit-icon {
    width: 100%; /* Ensure it fills card width */
    max-width: 250px; /* Max size for visual appeal */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

.page-login__security-section .page-login__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-login__security-content {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.page-login__security-section .page-login__section-title {
    color: #26A9E0;
    text-align: left;
}

.page-login__security-section .page-login__section-description {
    text-align: left;
    color: #f0f0f0;
    margin-left: 0;
    margin-right: 0;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-login__security-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-login__security-item::before {
    content: '✓';
    color: #26A9E0;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 30px;
}

.page-login__btn-secondary:hover {
    background-color: transparent;
    color: #26A9E0;
}

.page-login__security-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: block;
}

/* Support & FAQ Section */
.page-login__support-section {
    padding: 80px 0;
    background-color: #f0f2f5; /* Light background */
    color: #333333;
}

.page-login__support-section .page-login__section-title {
    color: #000000;
}
.page-login__support-section .page-login__section-description {
    color: #555555;
}

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

.page-login__faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

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

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

.page-login__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* For '-' symbol */
}

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

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

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

.page-login__support-cta {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: #333333;
}

.page-login__support-cta p {
    margin-bottom: 20px;
}

/* Register CTA Section */
.page-login__register-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #26A9E0 0%, #1e87b7 100%); /* Brand color gradient */
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-login__register-cta-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-login__register-cta-section .page-login__section-title {
    color: #ffffff;
}

.page-login__register-cta-section .page-login__section-description {
    color: #f0f0f0;
    margin-left: auto;
    margin-right: auto;
}

.page-login__register-button {
    margin-top: 30px;
    background-color: #EA7C07; /* Custom color for register button */
    border: 2px solid #EA7C07;
}

.page-login__register-button:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

.page-login__register-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__register-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-login__hero-title {
        font-size: 2.5em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-section .page-login__container,
    .page-login__security-section .page-login__container,
    .page-login__register-cta-section {
        flex-direction: column;
        text-align: center;
    }
    .page-login__hero-content,
    .page-login__security-content,
    .page-login__register-cta-content {
        max-width: 100%;
        text-align: center;
    }
    .page-login__security-section .page-login__section-title {
        text-align: center;
    }
    .page-login__security-section .page-login__section-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .page-login__security-list {
        margin-left: auto;
        margin-right: auto;
        max-width: 400px; /* Constrain list width for better readability */
    }
    .page-login__btn-secondary {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-login__hero-title {
        font-size: 2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .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;
        font-size: 1em;
    }
    .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-image,
    .page-login__benefit-icon,
    .page-login__security-image,
    .page-login__register-image {
        max-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;
    }
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__hero-image-wrapper,
    .page-login__security-image-wrapper,
    .page-login__register-image-wrapper {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-login__login-form-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__section-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;
    }
}