/* style/login.css */

/* --- General Page Styles --- */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Default to white background */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: var(--primary-color, #017439);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #FFFFFF); /* Blending brand colors */
    overflow: hidden; /* Ensure no overflow from hero image */
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-login__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF; /* White text on dark green/white gradient */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 800;
    color: #FFFF00; /* Yellow for main title for high contrast */
}

.page-login__description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

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

.page-login__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Login/Register button color */
    color: #FFFF00; /* Login/Register font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    max-width: 100%; /* Ensure button adapts to width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow word break */
}

.page-login__cta-button:hover {
    background: #a30606;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: #FFFF00;
}

/* --- Section Backgrounds & Colors --- */
.page-login__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-login__dark-bg {
    background-color: var(--primary-color, #017439);
    color: #FFFFFF;
}

.page-login__dark-bg .page-login__section-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}

.page-login__dark-bg .page-login__text-block {
    color: #f0f0f0;
}

/* --- Introduction Section --- */
.page-login__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-login__feature-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-login__feature-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-login__feature-title {
    font-size: 1.5em;
    color: var(--primary-color, #017439);
    margin-bottom: 15px;
}

/* --- Quick Access Section --- */
.page-login__link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-login__link-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-login__link-card .page-login__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for titles */
}

.page-login__link-card p {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}