.page-login {
    background-color: #FFFFFF; /* Custom background color */
    color: #333333; /* Default text color */
}

.page-login__hero-section {
    position: relative;
    padding-bottom: 20px; /* Small padding, relying on body for header offset */
    background-color: #100224; /* Dark background for hero */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-login__hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Recommended aspect ratio */
    min-width: 200px;
    min-height: 200px;
}

.page-login__hero-content {
    padding: 20px 15px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.page-login__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 15px;
    max-width: 100%; /* Constraint for H1 font size */
}

.page-login__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-login__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.page-login__btn--login {
    background-color: #EA7C07; /* Custom Login button color */
    color: #FFFFFF;
}

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

.page-login__form-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-login__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-login__section-title {
    font-size: 2rem;
    color: #000000; /* Default text color */
    text-align: center;
    margin-bottom: 40px;
}

.page-login__login-form {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    color: #333333;
    background-color: #FFFFFF; /* Ensure good contrast */
}

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

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.page-login__checkbox-label {
    display: flex;
    align-items: center;
    color: #333333;
}

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__forgot-password {
    color: #26A9E0; /* Main color for links */
    text-decoration: none;
}

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

.page-login__btn--submit {
    width: 100%;
    background-color: #EA7C07; /* Custom Login button color */
    color: #FFFFFF;
}

.page-login__btn--submit:hover {
    background-color: #d86b00;
}

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

.page-login__register-link {
    color: #26A9E0; /* Main color for links */
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__guide-section,
.page-login__troubleshoot-section,
.page-login__cta-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Default background */
}

.page-login__guide-section {
    text-align: center;
}

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

.page-login__guide-step {
    background-color: #f0f8ff; /* Light blue background for steps */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-login__step-title {
    font-size: 1.3rem;
    color: #26A9E0; /* Main color for step titles */
    margin-bottom: 10px;
}

.page-login__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.page-login__guide-image,
.page-login__cta-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-login__guide-image {
    max-width: 600px;
}

.page-login__troubleshoot-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

.page-login__troubleshoot-item {
    background-color: #f0f8ff; /* Light blue background */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-login__troubleshoot-heading {
    font-size: 1.2rem;
    color: #26A9E0; /* Main color for headings */
    margin-bottom: 8px;
}

.page-login__troubleshoot-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.page-login__cta-section {
    background-color: #e0f2f7; /* Lighter blue background for CTA */
    text-align: center;
}

.page-login__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333333;
}

.page-login__btn--register {
    background-color: #26A9E0; /* Main color for register button */
    color: #FFFFFF;
    margin-bottom: 30px;
}

.page-login__btn--register:hover {
    background-color: #1f8ec4;
}

.page-login__cta-image {
    max-width: 700px;
}

/* Responsive design */
@media (max-width: 849px) {
    .page-login__hero-section {
        padding-bottom: 0; /* Adjust for mobile */
    }
    .page-login__hero-visual img {
        aspect-ratio: 4/3; /* Mobile aspect ratio for hero */
    }
    .page-login__hero-content {
        padding: 20px 15px;
    }
    .page-login__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Clamp for H1 font size */
    }
    .page-login__description {
        font-size: 1rem;
    }
    .page-login__section-title {
        font-size: 1.7rem;
    }
    .page-login__guide-steps {
        grid-template-columns: 1fr; /* Stack steps on mobile */
    }
    /* Ensure content area images are responsive */
    .page-login img {
        max-width: 100%;
        height: auto;
        min-width: unset; /* Allow smaller display on mobile if max-width: 100% makes it smaller than 200px */
        min-height: unset; /* But the source image should still be large */
    }
    /* Specific override for hero to maintain aspect ratio */
    .page-login__hero-visual img {
        min-width: 100%; /* Ensure hero image takes full width */
        min-height: unset;
    }
}

@media (max-width: 549px) {
    .page-login__section-title {
        font-size: 1.5rem;
    }
    .page-login__btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .page-login__form-input {
        padding: 10px;
    }
    .page-login__login-form {
        padding: 20px;
    }
    .page-login__guide-step,
    .page-login__troubleshoot-item {
        padding: 15px;
    }
    .page-login__step-title,
    .page-login__troubleshoot-heading {
        font-size: 1.1rem;
    }
}

/* Color contrast checks - ensuring text is visible on backgrounds */
.page-login__hero-content,
.page-login__main-title,
.page-login__description {
    color: #FFFFFF; /* White text on dark background #100224 */
}

.page-login__section-title {
    color: #000000; /* Black text on light background #f8f8f8 or #FFFFFF */
}

.page-login__form-label,
.page-login__checkbox-label,
.page-login__register-text {
    color: #333333; /* Dark text on white background */
}

.page-login__forgot-password,
.page-login__register-link {
    color: #26A9E0; /* Blue links on light background */
}

.page-login__guide-step,
.page-login__troubleshoot-item {
    background-color: #f0f8ff; /* Light blue background */
}
.page-login__step-title,
.page-login__troubleshoot-heading {
    color: #26A9E0; /* Blue text on light blue background */
}
.page-login__step-description,
.page-login__troubleshoot-text {
    color: #555555; /* Dark grey text on light blue background */
}
.page-login__btn--login,
.page-login__btn--submit {
    background-color: #EA7C07; /* Orange button, white text */
    color: #FFFFFF;
}
.page-login__btn--register {
    background-color: #26A9E0; /* Blue button, white text */
    color: #FFFFFF;
}