/* style/login.css */
/* Custom Colors */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg-color: #FFFFFF;
    --background-color-page: #F4F7FB; /* Page specific background, not body */
    --text-main-color: #1F2D3D;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --error-color: #FF4A4A; /* Assuming for form validation */
}

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--background-color-page); /* Page specific background */
    line-height: 1.6;
    font-size: 16px;
}

/* Sections */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--background-color-page);
    overflow: hidden; /* Ensure no overflow */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width on larger screens */
    margin-bottom: 30px; /* Space between image and content */
    box-sizing: border-box;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-login__hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    z-index: 1;
    background-color: var(--card-bg-color); /* Ensures text contrast */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-login__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font-size clamp */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.1rem;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.page-login__form-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.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: 600;
    color: var(--text-main-color);
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main-color);
    background-color: #ffffff;
    box-sizing: border-box;
}

.page-login__form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
    color: var(--text-main-color);
}

.page-login__remember-me input {
    margin-right: 8px;
}

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

.page-login__forgot-password:hover {
    color: var(--secondary-color);
}

.page-login__submit-button {
    background: var(--button-gradient);
    color: #ffffff;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-button:hover {
    opacity: 0.9;
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-login__register-prompt {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-main-color);
}

.page-login__register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: var(--secondary-color);
}

.page-login__welcome-text-section,
.page-login__benefits-section,
.page-login__security-info-section,
.page-login__faq-section,
.page-login__download-section,
.page-login__contact-section {
    padding: 60px 20px;
    text-align: center;
}

.page-login__welcome-text-section {
    background-color: var(--background-color-page);
}

.page-login__benefits-section {
    background-color: var(--card-bg-color);
}

.page-login__cta-section {
    padding: 80px 20px;
    text-align: center;
    color: #ffffff; /* White text for dark background */
}

.page-login__dark-bg {
    background: var(--button-gradient); /* Using button gradient for dark section */
    color: #ffffff;
}

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

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

.page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: inherit; /* Inherit color from parent section */
}

.page-login__section-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

.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: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 250px; /* Constrain icon size */
    height: auto;
    margin-bottom: 20px;
    display: block; /* Important for proper spacing */
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px; /* Slightly rounded corners for icons */
}

.page-login__benefit-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-login__benefit-text {
    font-size: 0.95rem;
    color: var(--text-main-color);
}

.page-login__cta-buttons,
.page-login__download-buttons,
.page-login__contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    min-width: 180px; /* Minimum width for buttons */
    text-align: center;
}

.page-login__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-login__btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-login__btn-secondary {
    background-color: var(--card-bg-color); /* White background */
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 30px auto;
    text-align: left;
}

.page-login__security-list li {
    background-color: var(--card-bg-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-main-color);
    border-left: 5px solid var(--primary-color);
}

.page-login__security-list li strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-login__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-login__faq-item[open] .page-login__faq-question {
    background-color: var(--background-color-page);
    border-bottom: 1px solid var(--primary-color);
}

.page-login__faq-question::-webkit-details-marker,
.page-login__faq-question::marker {
    display: none;
}

.page-login__faq-question:hover {
    background-color: var(--background-color-page);
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: var(--text-main-color); /* Ensure question text is readable */
}

.page-login__faq-item[open] .page-login__faq-qtext {
    color: var(--primary-color);
}

.page-login__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-main-color);
    background-color: #fcfdff;
    border-top: none;
}

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


/* Download Section */
.page-login__download-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__hero-content {
        padding: 25px;
    }
    .page-login__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-login__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.2rem);
    }
    .page-login__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile specific styles */
    .page-login {
        font-size: 15px;
    }

    .page-login__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-login__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-login__hero-content {
        padding: 20px;
    }

    .page-login__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
}