.page-login {
    font-family: Arial, sans-serif;
    color: #F3F8FF; /* Text Main */
    background-color: #08162B; /* Deep Navy - Body background from shared.css */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-bottom: 50px; /* Space below image before content */
    text-align: center;
    overflow: hidden; /* Ensure no image overflow */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-login__hero-content {
    padding: 40px 20px;
    background-color: #08162B; /* Deep Navy */
    position: relative;
    z-index: 1;
    margin-top: -50px; /* Overlap with image slightly for visual effect */
    border-bottom: 1px solid #1B3357; /* Divider */
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font-size clamp */
    font-weight: 700;
    line-height: 1.2;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-login__description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-login__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #F3F8FF; /* Text Main */
    border: 1px solid #1144A6;
    box-shadow: 0 4px 15px rgba(17, 68, 166, 0.4);
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 20px rgba(17, 68, 166, 0.6);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #2B73F6; /* Primary brand color */
    border: 2px solid #2B73F6;
}

.page-login__btn-secondary:hover {
    background-color: #2B73F6;
    color: #F3F8FF;
    border-color: #2B73F6;
}

/* Login Form Section */
.page-login__login-form-section {
    padding: 60px 0;
    text-align: center;
}

.page-login__form-card {
    background-color: #10233F; /* Card BG */
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #244D84; /* Border */
}

.page-login__form-title {
    font-size: 2em;
    color: #F2C14E; /* Gold */
    margin-bottom: 30px;
    font-weight: 600;
}

.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;
    color: #F3F8FF; /* Text Main */
    font-size: 0.95em;
    font-weight: 500;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #244D84; /* Border */
    border-radius: 6px;
    background-color: #08162B; /* Deep Navy */
    color: #F3F8FF; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #AFC4E8; /* Text Secondary */
    opacity: 0.7;
}

.page-login__form-input:focus {
    border-color: #2B73F6; /* Primary brand color */
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 115, 246, 0.3);
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #AFC4E8; /* Text Secondary */
}

.page-login__checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #244D84; /* Border */
    border-radius: 4px;
    background-color: #08162B; /* Deep Navy */
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.page-login__checkbox:checked {
    background-color: #2B73F6; /* Primary brand color */
    border-color: #2B73F6;
}

.page-login__checkbox:checked::before {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #F3F8FF; /* Text Main */
    font-size: 14px;
    line-height: 1;
}

.page-login__forgot-password {
    color: #2B73F6; /* Primary brand color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #4FA8FF; /* Glow */
}

.page-login__btn-submit {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #F3F8FF; /* Text Main */
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 68, 166, 0.4);
    width: 100%; /* Ensure full width in form */
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-submit:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 20px rgba(17, 68, 166, 0.6);
}

.page-login__register-text {
    margin-top: 25px;
    color: #AFC4E8; /* Text Secondary */
    font-size: 0.95em;
}

.page-login__register-link {
    color: #F2C14E; /* Gold */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #4FA8FF; /* Glow */
}

/* General Section Styling */
.page-login__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-login__dark-section {
    background-color: #08162B; /* Deep Navy */
    color: #F3F8FF; /* Text Main */
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    border-top: 1px solid #1B3357; /* Divider */
}

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

.page-login__benefit-item {
    background-color: #10233F; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
    width: 100%;
    max-width: 150px; /* Adjust size for icon-like images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefit-title {
    font-size: 1.4em;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__benefit-description {
    font-size: 0.95em;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.5;
}

/* Security Section */
.page-login__security-section {
    padding: 60px 0;
    background-color: #10233F; /* Card BG */
    border-top: 1px solid #1B3357; /* Divider */
}

.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-login__security-text {
    flex: 1;
    font-size: 1.05em;
    line-height: 1.7;
    color: #AFC4E8; /* Text Secondary */
}

.page-login__security-text p {
    margin-bottom: 15px;
}

.page-login__security-image {
    flex: 1;
    text-align: center;
}

.page-login__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as block for max-width */
    margin: 0 auto;
}

/* Guide Section */
.page-login__guide-section {
    padding: 60px 0;
    border-top: 1px solid #1B3357; /* Divider */
}

.page-login__intro-text {
    font-size: 1.1em;
    line-height: 1.7;
    color: #AFC4E8; /* Text Secondary */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-login__guide-step {
    margin-bottom: 50px;
}

.page-login__guide-step-title {
    font-size: 1.8em;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.page-login__guide-step p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 20px;
    text-align: justify;
}

.page-login__figure {
    margin: 20px auto;
    max-width: 680px;
    text-align: center;
}

.page-login__figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__figcaption {
    font-size: 0.9em;
    color: #AFC4E8; /* Text Secondary */
    margin-top: 10px;
    line-height: 1.4;
}

.page-login__long-form-content {
    margin-top: 60px;
    padding: 40px;
    border-radius: 12px;
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-login__long-form-content h2 {
    color: #F2C14E; /* Gold */
    margin-bottom: 30px;
}

.page-login__long-form-content p {
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1em;
}

.page-login__long-form-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.page-login__long-form-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.6;
}

.page-login__long-form-content ul li::before {
    content: '•';
    color: #2B73F6; /* Primary brand color */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    border-top: 1px solid #1B3357; /* Divider */
}

.page-login__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-login__faq-item {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    cursor: pointer;
    background-color: #113B7A; /* Primary brand color */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-login__faq-item[open] .page-login__faq-question {
    background-color: #1D5FD1; /* Auxiliary color on open */
}

.page-login__faq-question::-webkit-details-marker {
    display: none;
}

.page-login__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #F2C14E; /* Gold */
    transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
    background-color: #10233F; /* Card BG */
    border-top: 1px solid #244D84; /* Border */
}

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

/* Final CTA Section */
.page-login__final-cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #08162B; /* Deep Navy */
    border-top: 1px solid #1B3357; /* Divider */
}

.page-login__promo-box {
    background-color: #10233F; /* Card BG */
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #244D84; /* Border */
}

.page-login__promo-box .page-login__section-title {
    margin-bottom: 20px;
}

.page-login__promo-box p {
    font-size: 1.1em;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-content {
        padding: 30px 15px;
    }
    .page-login__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-login__description {
        font-size: 1em;
    }
    .page-login__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-login__security-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__security-image,
    .page-login__security-text {
        flex: none;
        width: 100%;
    }
    .page-login__promo-box {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    /* 1. Top Section Title + Dual CTA */
    .page-login__hero-section {
        padding-bottom: 30px;
    }
    .page-login__hero-content {
        padding-top: 10px !important; /* Fixed header spacing */
        margin-top: -30px;
    }
    .page-login__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .page-login__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .page-login__btn,
    .page-login__btn-submit {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 2. Single Column Long Content Container */
    .page-login__container {
        padding: 0 15px;
    }
    .page-login__login-form-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__guide-section,
    .page-login__faq-section,
    .page-login__final-cta-section {
        padding: 40px 0;
    }
    .page-login__form-card {
        padding: 30px 20px;
    }
    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__guide-step-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    .page-login__guide-step p,
    .page-login__long-form-content p,
    .page-login__long-form-content ul li {
        font-size: 0.95em;
        text-align: left;
    }
    .page-login__promo-box {
        padding: 30px 20px;
    }

    /* 3. Generic Images and Figures */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-login__figure {
        margin: 15px auto;
    }
    .page-login__figcaption {
        font-size: 0.85em;
    }
    .page-login__benefit-icon {
        max-width: 100px;
    }

    /* 4. Buttons and Button Containers */
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
    }

    /* 5. Registration Tutorial and FAQ Blocks */
    .page-login__faq-list {
        margin-top: 30px;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
}