/* style/login.css */

/* Base styles for the login page content */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background-color: #ffffff; /* Explicitly set to match shared.css body background */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #017439; /* Primary green for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-login__section-title--white {
    color: #ffffff; /* White text for titles on dark backgrounds */
}

.page-login__section-description,
.page-login__text-center {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__text-white {
    color: #ffffff;
}

.page-login__text-white--large {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.page-login__text-white--small {
    font-size: 0.9em;
    margin-top: 20px;
}

.page-login__text-white--small-bottom {
    font-size: 0.9em;
    margin-top: 40px;
    margin-bottom: 0;
}

.page-login__text-center--large {
    font-size: 1.2em;
}

.page-login__text-center--small {
    font-size: 0.9em;
    margin-top: 25px;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
}

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

.page-login__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Login Form */
.page-login__form-container {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form */
    padding: 30px;
    border-radius: 10px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

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

.page-login__form-description {
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95em;
}

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

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

.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.9);
    color: #333333;
    font-size: 1em;
}

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

.page-login__btn-login {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #C30808; /* Custom red for login */
    color: #FFFF00; /* Custom yellow for login button text */
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 25px;
}

.page-login__btn-login:hover {
    background-color: #a00606; /* Darker red on hover */
}

.page-login__form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9em;
}

.page-login__link-register,
.page-login__link-forgot-password {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__link-register:hover,
.page-login__link-forgot-password:hover {
    color: #FFFF00; /* Yellow on hover for links */
    text-decoration: underline;
}

/* Features Section */
.page-login__features-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for this section */
}

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

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

.page-login__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__feature-icon {
    width: 100%;
    max-width: 150px; /* Adjust max-width for feature icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-login__feature-description {
    font-size: 1em;
    color: #555555;
}

/* CTA Download Section */
.page-login__cta-download {
    padding: 80px 0;
    background-color: #017439; /* Primary green background */
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-login__cta-download .page-login__container {
    position: relative;
    z-index: 1;
}

.page-login__app-image {
    width: 100%;
    max-width: 600px; /* Example max-width for app image */
    height: auto;
    margin-top: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text wraps within button */
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom red for primary action */
    color: #FFFF00; /* Custom yellow for text */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Primary green for text */
    border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
}

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

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

.page-login__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #fefefe;
}

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

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

.page-login__faq-question h3 {
    margin: 0;
    color: #017439; /* Primary green for FAQ questions */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

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

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

.page-login__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Security Info Section */
.page-login__security-info {
    padding: 80px 0;
    background-color: #017439; /* Primary green background */
    color: #ffffff;
    text-align: center;
}

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

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