/* style/login.css */
.page-login {
    color: #ffffff; /* Default text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #121212; /* Inherited from body, but ensure consistency */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 120px 0 80px; /* Adjusted padding to accommodate header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #8B0000; /* Main brand color */
}

.page-login__hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__main-title {
    font-size: 3em;
    color: #FFD700; /* Auxiliary brand color for highlights */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-login__login-form-wrapper {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #FFD700;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1em;
}

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

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-login__checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 1em;
    user-select: none;
    color: #f0f0f0;
}

.page-login__checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.page-login__checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
    background-color: #FFD700;
}

.page-login__checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
    display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #8B0000;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.page-login__forgot-password {
    color: #FFD700;
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background-color: #FFD700; /* Auxiliary color for primary action */
    color: #8B0000; /* Main color for text on auxiliary background */
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    text-align: center;
}

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

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

.page-login__register-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

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

/* Info Sections */
.page-login__info-section, .page-login__guide-section, .page-login__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-login__light-bg {
    background-color: #f8f9fa;
    color: #333333; /* Dark text for light background */
}

.page-login__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: #ffffff;
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #8B0000; /* Main brand color for titles on light background */
}

.page-login__dark-bg .page-login__section-title {
    color: #FFD700; /* Auxiliary brand color for titles on dark background */
}

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

.page-login__dark-bg .page-login__section-description {
    color: #cccccc;
}

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

.page-login__feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-login__feature-title {
    font-size: 1.8em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-login__feature-card p {
    margin-bottom: 15px;
    color: #555555;
}

.page-login__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-login__feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #555555;
}

.page-login__feature-list li::before {
    content: '✓';
    color: #8B0000;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-login__feature-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: #8B0000;
    border: 2px solid #8B0000;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin-top: 20px;
}

.page-login__btn-secondary:hover {
    background-color: #8B0000;
    color: #ffffff;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-login__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    color: #f0f0f0;
}

.page-login__security-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-login__security-item p {
    color: #cccccc;
}

.page-login__security-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin-top: 40px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Guide Section */
.page-login__guide-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 40px;
}

.page-login__guide-list li {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 25px;
    color: #333333;
}

.page-login__guide-step-title {
    font-size: 1.6em;
    color: #8B0000;
    margin-bottom: 10px;
}

.page-login__guide-list li p {
    color: #555555;
    margin-bottom: 15px;
}

.page-login__btn-link {
    display: inline-block;
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-login__btn-link:hover {
    color: #FFD700;
    border-color: #FFD700;
}

.page-login__troubleshooting {
    background-color: #f0f0f0;
    border-left: 5px solid #FFD700;
    padding: 30px;
    margin-top: 40px;
    border-radius: 5px;
    text-align: left;
    color: #333333;
}

.page-login__troubleshooting-title {
    font-size: 1.8em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-login__troubleshooting-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #555555;
}

.page-login__troubleshooting-list li {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    text-align: center;
}

.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-title {
    font-size: 1.4em;
    color: #FFD700;
    margin: 0;
    text-align: left;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    color: #FFD700;
    font-weight: bold;
    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;
    text-align: left;
    color: #cccccc;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

/* CTA Section */
.page-login__cta-section {
    background-color: #8B0000; /* Main brand color */
    color: #ffffff;
    padding: 100px 0;
}

.page-login__cta-section .page-login__section-title {
    color: #FFD700;
}

.page-login__cta-section .page-login__section-description {
    color: #f0f0f0;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding: 100px 0 60px;
    }
    .page-login__hero-content {
        padding: 30px;
    }
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__intro-text {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
    .page-login__features-grid, .page-login__security-grid {
        grid-template-columns: 1fr;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary, .page-login__btn-secondary {
        width: 100%;
    }
    
    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section, .page-login__card, .page-login__container, .page-login__login-form-wrapper, .page-login__features-grid, .page-login__security-grid, .page-login__troubleshooting, .page-login__faq-list, .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure hero section is below header on mobile */
    }
    /* The prompt specified video section, but general sections need it too for safety */
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    /* Mobile button responsiveness */
    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
      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;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__hero-content {
        padding: 20px;
    }
    .page-login__form-input {
        width: calc(100% - 20px);
    }
}