/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Ensure consistency with body background */
}

.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: 80px 0;
    text-align: center;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-login__hero-section .page-login__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.page-login__main-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold color for title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
}

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for form background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    margin: 20px auto;
    border: 1px solid rgba(255, 215, 0, 0.3); /* Subtle gold border */
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    text-align: left;
}

.page-login__label {
    display: block;
    margin-bottom: 8px;
    color: #FFD700; /* Gold for labels */
    font-weight: bold;
}

.page-login__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__input::placeholder {
    color: #aaa;
}

.page-login__input:focus {
    border-color: #FFD700;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

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

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

.page-login__forgot-password:hover {
    color: #fff;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-login__checkbox {
    width: 16px;
    height: 16px;
    accent-color: #FFD700; /* Gold accent for checkbox */
}

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

.page-login__btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold gradient */
    color: #000000;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.page-login__btn-primary:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

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

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

.page-login__register-link:hover {
    color: #fff;
}

.page-login__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    text-align: center;
    background-color: #000000; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-login__section-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.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: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    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(255, 215, 0, 0.2);
}

.page-login__benefit-icon {
    width: 100%;
    max-width: 250px; /* Ensure images are not too small */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-login__card-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Troubleshooting / FAQ Section */
.page-login__troubleshooting-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
    text-align: center;
}

.page-login__intro-text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 215, 0, 0.1); /* Subtle gold background for question */
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    margin: 0;
    color: #FFD700;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-login__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #f0f0f0;
}


/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #000000; /* Dark background */
    color: #ffffff;
}

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

.page-login__cta-button {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    font-weight: bold;
}

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

.page-login__btn-secondary:hover {
    background: #FFD700;
    color: #000000;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__login-form-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__description {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__login-form-wrapper {
        padding: 30px;
        max-width: 90%;
    }
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__cta-button {
        width: 100%;
        max-width: 300px; /* Limit width for single column buttons */
        margin: 0 auto;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-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__benefits-section,
    .page-login__troubleshooting-section,
    .page-login__cta-section,
    .page-login__benefits-grid,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* 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;
    }
    .page-login__cta-buttons {
        display: flex;
        flex-direction: column; /* Ensure vertical stacking on mobile */
    }
    .page-login__faq-question {
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__login-form-wrapper {
        padding: 20px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
}