/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly set body background as white */
}

.page-login__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared.css for header offset */
    padding-bottom: 40px;
    background-color: #f8f8f8;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 100%; /* Ensure container max width */
    width: 100%;
    box-sizing: border-box;
}

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

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-login__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-login__login-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-login__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 25px;
    text-align: center;
}

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

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

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

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 5px rgba(38, 169, 224, 0.3);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px; /* Space between items */
}

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

.page-login__forgot-password-link:hover {
    color: #EA7C07; /* Login color */
}

.page-login__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    width: auto; /* Default width */
}

.page-login__btn--login {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: none;
    flex-grow: 1; /* Allow button to grow */
    max-width: calc(50% - 7.5px); /* Adjust for gap */
}

.page-login__btn--login:hover {
    background-color: #d86c06;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 1em;
    color: #555555;
}

.page-login__register-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
}

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

/* General Section Styles */
.page-login__section {
    padding: 50px 20px;
    max-width: 1150px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.page-login__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.page-login__section-intro {
    font-size: 1.05em;
    color: #555555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #f0f8ff; /* Light blue tint */
}

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

.page-login__benefit-card,
.page-login__issue-card,
.page-login__feature-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover,
.page-login__issue-card:hover,
.page-login__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-login__benefit-image {
    width: 100%;
    height: auto;
    max-width: 680px; /* Match placeholder size */
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
}

.page-login__benefit-title,
.page-login__issue-title,
.page-login__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__benefit-text,
.page-login__issue-text,
.page-login__feature-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow text to take available space */
}

.page-login__cta-section {
    text-align: center;
    margin-top: 30px;
}

.page-login__btn--primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-login__btn--primary:hover {
    background-color: #1e87bb;
}

/* Guide Section */
.page-login__guide-section {
    background-color: #ffffff;
}

.page-login__steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-login__step-card {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-login__step-title {
    font-size: 1.5em;
    color: #EA7C07; /* Login orange */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__step-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-login__figure {
    margin: 0;
    width: 100%;
    text-align: center;
    margin-top: auto; /* Push figure to bottom */
}

.page-login__figure-image {
    width: 100%;
    height: auto;
    max-width: 680px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.page-login__figcaption {
    font-size: 0.9em;
    color: #777777;
    margin-top: 10px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    background-color: #f0f8ff;
}

.page-login__btn--secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 20px;
}

.page-login__btn--secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
}

.page-login__security-item {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-login__list-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-login__figure--full-width {
    max-width: 900px; /* Constrain max width for full width figure */
    margin: 30px auto;
}

/* Why Choose Section */
.page-login__why-choose-section {
    background-color: #e6f7ff; /* Lighter blue */
}

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

/* FAQ Section */
.page-login__faq-section {
    background-color: #ffffff;
}

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

.page-login__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X */
}

.page-login__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 1em;
    color: #555555;
    overflow: hidden;
    max-height: 0; /* Default collapsed state */
    transition: max-height 0.3s ease-out;
}

.page-login__faq-item[open] .page-login__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    transition: max-height 0.3s ease-in;
}

.page-login__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-login__final-cta-section {
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.page-login__final-cta-section .page-login__section-title,
.page-login__final-cta-section .page-login__section-intro {
    color: #ffffff;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-login__btn--login-large,
.page-login__btn--register-large {
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 8px;
    min-width: 200px;
    max-width: calc(50% - 10px); /* Adjust for gap */
}

.page-login__btn--login-large {
    background-color: #EA7C07;
    color: #ffffff;
    border: none;
}

.page-login__btn--login-large:hover {
    background-color: #d86c06;
}

.page-login__btn--register-large {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
}

.page-login__btn--register-large:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1e87bb;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-login__section-title {
        font-size: clamp(1.8em, 4vw, 2.2em);
    }
}