/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* General background */
}

.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%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-login__hero-image-container {
    width: 100%;
    position: relative;
    order: 1; /* Image first */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim the image for text contrast */
}

.page-login__hero-content {
    order: 2; /* Content after image */
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for text */
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly with image for visual effect */
    position: relative;
    z-index: 10;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-login__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: #E53935;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.page-login__hero-description {
    font-size: 1.1em;
    color: #333333;
    max-width: 800px;
    margin: 0 auto;
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Card BG color */
    color: #333333;
    text-align: center;
}

.page-login__section-title {
    font-size: 2.2em;
    color: #E53935;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-title--white {
    color: #ffffff;
}

.page-login__section-description {
    font-size: 1.05em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E0E0E0; /* Border color */
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.page-login__forgot-password-link {
    color: #E53935;
    text-decoration: none;
    font-weight: 600;
}

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

.page-login__form-actions {
    margin-top: 30px;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
}

.page-login__register-prompt {
    margin-top: 30px;
    font-size: 1em;
    color: #555555;
}

.page-login__register-link {
    color: #E53935;
    text-decoration: none;
    font-weight: bold;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #E53935; /* Main color as dark background */
    color: #ffffff;
    text-align: center;
}

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

.page-login__benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 5px; /* Ensure images are not small icons and have some styling */
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

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

.page-login__benefit-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #E53935;
    background-color: #ffffff;
    border: 2px solid #E53935;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin: 0 10px;
}

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

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

/* Download Section */
.page-login__download-section {
    padding: 80px 0;
    background-color: #F5F7FA; /* Background color */
    color: #333333;
}

.page-login__download-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

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

.page-login__download-image {
    flex: 0 0 auto;
    max-width: 400px;
}

.page-login__app-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-login__download-flex {
        flex-direction: column-reverse; /* Image above content on smaller screens */
        text-align: center;
    }
    .page-login__download-content {
        text-align: center;
    }
    .page-login__download-image {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-content {
        margin-top: -60px;
        padding: 20px 15px;
    }
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__form-section, .page-login__benefits-section, .page-login__download-section {
        padding: 40px 0;
    }
    .page-login__login-form {
        padding: 20px;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .page-login__btn-primary, .page-login__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-login__container,
    .page-login__download-flex {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-login__hero-image,
    .page-login__benefit-icon,
    .page-login__app-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-section {
        padding-top: 10px !important;
    }
    .page-login__download-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.5em;
    }
    .page-login__section-title {
        font-size: 1.4em;
    }
    .page-login__hero-content {
        margin-top: -40px;
    }
}