/* style/login.css */

/* --- General Page Styles --- */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #FFCC00; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

/* --- Color Contrast Classes (for sections/cards) --- */
.page-login__dark-bg {
    background-color: #003366; /* Main brand color */
    color: #ffffff;
    padding: 60px 0;
}

.page-login__light-bg {
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333;
    padding: 60px 0;
}

/* --- Buttons --- */
.page-login__btn-primary {
    display: inline-block;
    background-color: #FFCC00; /* Auxiliary color */
    color: #003366; /* Main brand color for text on auxiliary background */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

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

.page-login__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #FFCC00;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFCC00;
    cursor: pointer;
    font-size: 1.1em;
}

.page-login__btn-secondary:hover {
    background-color: #FFCC00;
    color: #003366;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7); /* Dark overlay with brand color */
    z-index: 2;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFCC00; /* Auxiliary color for main title */
    font-weight: bold;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Login Form */
.page-login__login-form-wrapper {
    background: rgba(0, 0, 0, 0.6); /* Slightly transparent dark background */
    padding: 40px;
    border-radius: 12px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 204, 0, 0.3); /* Subtle border with auxiliary color */
}

.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-size: 1em;
    color: #f0f0f0;
    font-weight: bold;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #0055aa; /* Lighter shade of brand blue */
    border-radius: 6px;
    background-color: #002244; /* Darker shade of brand blue */
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    outline: none;
    border-color: #FFCC00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 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;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #FFCC00; /* Highlight checkbox with auxiliary color */
}

.page-login__checkbox-label {
    color: #f0f0f0;
}

.page-login__forgot-password-link {
    color: #FFCC00;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__login-button {
    width: 100%;
    margin-top: 10px;
}

.page-login__register-text {
    margin-top: 25px;
    color: #f0f0f0;
    font-size: 1em;
}

.page-login__register-link {
    color: #FFCC00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

.page-login__benefit-card {
    background: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-icon {
    width: 100%;
    max-width: 250px; /* Constrain icon size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #003366; /* Main brand color */
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* --- Guide Section --- */
.page-login__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__step-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.page-login__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFCC00;
    color: #003366;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-title {
    font-size: 1.5em;
    color: #FFCC00;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__troubleshoot {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 12px;
    margin-top: 60px;
    border: 1px solid rgba(255, 204, 0, 0.1);
}

.page-login__troubleshoot-title {
    font-size: 1.8em;
    color: #FFCC00;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-login__troubleshoot-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.page-login__troubleshoot-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
    padding-left: 25px;
    position: relative;
}

.page-login__troubleshoot-list li::before {
    content: "•";
    color: #FFCC00;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

.page-login__troubleshoot-highlight {
    color: #FFCC00;
}

/* --- Security Section --- */
.page-login__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-login__security-text-block {
    flex: 1;
    min-width: 300px;
    color: #333333;
}

.page-login__security-subtitle {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__security-paragraph {
    margin-bottom: 20px;
    font-size: 1em;
    color: #555555;
}

.page-login__security-list {
    list-style: disc;
    padding-left: 20px;
    color: #555555;
}

.page-login__security-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-login__security-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- FAQ Section --- */
.page-login__faq-list {
    margin-top: 40px;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: #003366; /* Main brand color for question background */
    color: #FFCC00; /* Auxiliary color for question text */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: inherit;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2); /* Slightly darker background for answer */
    color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 25px;
}

.page-login__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

/* --- CTA Section --- */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333;
}

.page-login__cta-container {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-login__cta-section .page-login__section-title {
    color: #003366; /* Main brand color */
}

.page-login__cta-section .page-login__section-description {
    color: #555555;
    margin-bottom: 30px;
}

.page-login__cta-button {
    font-size: 1.2em;
    padding: 18px 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__hero-description {
        font-size: 1.2em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
    .page-login__benefits-grid,
    .page-login__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__login-form-wrapper {
        padding: 30px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__benefits-grid,
    .page-login__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-login__security-content {
        flex-direction: column;
    }
    .page-login__security-image-wrapper {
        order: -1; /* Image above text on mobile */
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-title {
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px !important;
    }
    .page-login__cta-button {
        font-size: 1.1em;
        padding: 15px 30px;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsiveness - no video on this page, but include placeholder rules */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Mobile button responsiveness */
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"],
    .page-login__login-button,
    .page-login__cta-button {
        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;
    }
    
    .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 {
        display: flex;
        flex-direction: column;
    }

    /* Content area padding for mobile */
    .page-login__container {
        padding: 0 15px;
    }
    .page-login__dark-bg, .page-login__light-bg {
        padding: 40px 0;
    }
    .page-login__login-form-wrapper {
        padding: 20px;
    }
    .page-login__security-list {
      padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__hero-description {
        font-size: 0.9em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__section-description {
        font-size: 0.9em;
    }
    .page-login__login-form-wrapper {
        max-width: 100%;
    }
    .page-login__forgot-password-link, .page-login__checkbox-label {
        font-size: 0.85em;
    }
    .page-login__benefit-title, .page-login__step-title {
        font-size: 1.3em;
    }
    .page-login__troubleshoot-title {
        font-size: 1.5em;
    }
    .page-login__security-subtitle {
        font-size: 1.5em;
    }
    .page-login__faq-title {
        font-size: 1em;
    }
    .page-login__cta-button {
        padding: 12px 25px;
    }
}