/* style/login.css */

.page-login {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Hero Section */
.page-login__hero-section {
    background-color: #f8f9fa; /* Light background for hero */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-login__hero-content {
    max-width: 800px;
}

.page-login__main-title {
    font-size: 2.8em;
    color: #007bff; /* Primary color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555555;
}

.page-login__cta-button {
    display: inline-block;
    background-color: #ffc107; /* Secondary color for CTA */
    color: #333333;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__cta-button:hover {
    background-color: #e0a800;
}

.page-login__hero-image {
    max-width: 100%;
    margin-top: 40px;
}

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

/* Form Section */
.page-login__form-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.page-login__section-title {
    font-size: 2.2em;
    color: #007bff;
    margin-bottom: 40px;
    text-align: center;
}

.page-login__form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #f0f8ff; /* Light blue background for form */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.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: bold;
    color: #333333;
}

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

.page-login__form-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.page-login__forgot-password-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.page-login__submit-button {
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

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

.page-login__register-prompt p {
    margin-bottom: 10px;
}

.page-login__register-link {
    color: #ffc107; /* Secondary color for register link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Process Section */
.page-login__process-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

.page-login__process-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-login__process-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    position: relative;
    border-left: 5px solid #007bff;
}

.page-login__process-step-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5em;
    font-weight: bold;
    color: #e9ecef; /* Light gray for step number */
    z-index: 1;
}

.page-login__process-step-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.page-login__process-step-description {
    color: #555555;
    position: relative;
    z-index: 2;
}

/* Security Section */
.page-login__security-section {
    background-color: #ffffff;
    padding: 60px 20px;
}

.page-login__security-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-login__security-image {
    width: 100%;
    max-width: 450px; /* Ensure image is not too small */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.page-login__security-item {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.page-login__security-item-title {
    font-size: 1.3em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-login__security-item-description {
    color: #555555;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

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

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

.page-login__faq-question {
    width: 100%;
    background-color: #007bff;
    color: #ffffff;
    padding: 18px 25px;
    border: none;
    text-align: left;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-icon {
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.page-login__faq-question.active .page-login__faq-icon {
    transform: rotate(180deg);
}

.page-login__faq-answer {
    padding: 0 25px; /* Initial padding, will be animated */
    background-color: #f0f8ff;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-login__faq-answer p {
    padding: 15px 0; /* Content padding, not animated */
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 60px 15px;
    }

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

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

    .page-login__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-login__form-section,
    .page-login__process-section,
    .page-login__security-section,
    .page-login__faq-section {
        padding: 40px 15px;
    }

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

    .page-login__form-container {
        padding: 30px;
    }

    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__submit-button {
        width: 100%;
    }

    .page-login__security-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-login__security-image {
        max-width: 100%;
        width: 100%;
    }

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

    /* Ensure all images within .page-login are responsive and not smaller than 200px */
    .page-login img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    .page-login__hero-image img,
    .page-login__security-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Explicitly ensure min-width */
        min-height: 200px; /* Explicitly ensure min-height */
    }
}