/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for default light body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-login__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    min-height: 500px; /* Minimum height for hero section */
}

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

.page-login__hero-container {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    background: rgba(10, 36, 99, 0.7); /* Semi-transparent royal blue overlay */
    border-radius: 10px;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
}

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

.page-login__cta-buttons--center {
  margin-top: 30px;
}

.page-login__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.page-login__button--primary {
    background-color: #FFD700; /* Gold */
    color: #0A2463; /* Royal Blue */
    border: 2px solid #FFD700;
}

.page-login__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-login__button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-login__button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

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

.page-login__section-title {
    font-size: 2em;
    color: #0A2463;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

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

.page-login__ordered-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__list-item {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-login__list-item strong {
    color: #0A2463;
}

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

.page-login__security-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-login__security-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-login__security-heading {
    font-size: 1.4em;
    color: #0A2463;
    margin-bottom: 15px;
}

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

.page-login__faq-container {
    max-width: 900px;
    margin: 40px auto;
}

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

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

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFD700;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: "-"; /* Changes + to - when open */
}

.page-login__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05em;
    color: #555555;
    border-top: 1px solid #eeeeee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-login {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-login__hero-container {
        padding: 30px 15px;
    }

    .page-login__main-title {
        font-size: 2.2em;
    }

    .page-login__intro-text {
        font-size: 1em;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__button {
        width: 100%;
        padding: 12px 20px;
    }

    .page-login__content-area {
        padding: 20px 15px;
    }

    .page-login__section-title {
        font-size: 1.8em;
        margin-top: 30px;
    }

    .page-login__section-description,
    .page-login__list-item,
    .page-login__security-text {
        font-size: 0.95em;
    }

    .page-login__security-grid {
        grid-template-columns: 1fr;
    }

    .page-login__security-icon {
      max-width: 200px;
      max-height: 200px;
    }

    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-login__faq-answer {
        font-size: 0.95em;
        padding: 10px 20px 15px;
    }

    /* Ensure content images do not overflow on mobile */
    .page-login__hero-image,
    .page-login__security-icon,
    .page-login__content-area img {
        max-width: 100%;
        height: auto;
    }
}