/* style/login.css */

/* --- General Page Styles (for .page-login scope) --- */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: 10px; /* Account for fixed header */
}

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

.page-login__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold title */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-login__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #000080; /* Dark blue underline */
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-login__paragraph {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 30px;
}

/* --- Hero Section / Login Form --- */
.page-login__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(135deg, #000080, #0a0a0a); /* Dark blue to near black gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    box-sizing: border-box;
}

.page-login__hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__login-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for card */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__main-title {
    font-size: 32px;
    color: #FFD700; /* Gold title */
    margin-bottom: 30px;
    font-weight: bold;
}

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

.page-login__label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-size: 16px;
}

.page-login__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #000080; /* Dark blue border */
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4); /* Darker input background */
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__input:focus {
    border-color: #FFD700; /* Gold focus border */
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

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

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

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

.page-login__checkbox-label {
    color: #cccccc;
    cursor: pointer;
}

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

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

.page-login__login-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #FFD700; /* Gold button */
    color: #000080; /* Dark blue text for contrast */
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    text-decoration: none; /* Make it look like a button */
}

.page-login__login-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
}

.page-login__register-prompt {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.page-login__register-text {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 16px;
}

.page-login__register-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #000080; /* Dark blue button */
    color: #FFD700; /* Gold text for contrast */
    border: 1px solid #FFD700;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__register-button:hover {
    background-color: #FFD700; /* Gold background on hover */
    color: #000080; /* Dark blue text */
    transform: translateY(-2px);
}

/* --- Benefits Section --- */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Darker background for this section */
}

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

.page-login__benefit-card {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter transparent background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.page-login__benefit-icon {
    width: 100px; /* Ensure images are not too small */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefit-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__benefit-description {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.7;
}

/* --- Security Section --- */
.page-login__security-section {
    padding: 80px 0;
    background-color: #000000; /* Black background for this section */
}

.page-login__security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-login__security-text {
    text-align: left;
}

.page-login__security-text .page-login__section-title {
    text-align: left;
    margin-bottom: 30px;
}

.page-login__security-text .page-login__section-title::after {
    margin: 15px 0 0 0;
}

.page-login__security-text .page-login__paragraph {
    text-align: left;
    margin-bottom: 30px;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-login__security-list-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #FFD700;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__security-list-item:last-child {
    margin-bottom: 0;
}

.page-login__list-item-title {
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__security-list-item p {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.7;
    margin: 0;
}

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

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

/* --- Troubleshooting Section --- */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Slightly lighter dark background */
}

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

.page-login__troubleshooting-card {
    background-color: rgba(0, 0, 128, 0.4); /* Dark blue transparent */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2); /* Gold border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__troubleshooting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.page-login__card-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__card-description {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 25px;
}

.page-login__card-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FFD700;
    color: #000080;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* --- New User Section --- */
.page-login__new-user-section {
    padding: 80px 0;
    background-color: #000000;
}

.page-login__new-user-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-login__new-user-image-wrapper {
    text-align: center;
}

.page-login__new-user-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-login__new-user-text {
    text-align: left;
}

.page-login__new-user-text .page-login__section-title {
    text-align: left;
    margin-bottom: 30px;
}

.page-login__new-user-text .page-login__section-title::after {
    margin: 15px 0 0 0;
}

.page-login__new-user-text .page-login__paragraph {
    text-align: left;
    margin-bottom: 30px;
}

.page-login__new-user-benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-login__new-user-benefits-list li {
    background-color: rgba(0, 0, 128, 0.2);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

.page-login__new-user-benefits-list li:last-child {
    margin-bottom: 0;
}

.page-login__new-user-benefits-list .page-login__list-item-title {
    font-size: 18px;
    color: #FFD700;
    margin-bottom: 5px;
}

.page-login__new-user-benefits-list li p {
    font-size: 15px;
    color: #e0e0e0;
    line-height: 1.6;
}

.page-login__register-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FFD700;
    color: #000080;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__register-cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* --- FAQ Section --- */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d;
}

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

.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for item background */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #000080; /* Dark blue background for question */
    color: #FFD700; /* Gold text for question */
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-login__faq-question:hover {
    background: #000066; /* Slightly darker blue on hover */
}

.page-login__faq-question:active {
    background: #000055;
}

.page-login__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #FFD700; /* Gold text */
}

.page-login__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
    color: #ffffff; /* White toggle when active */
    transform: rotate(180deg);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #e0e0e0; /* Light text for answer */
    background-color: rgba(255, 255, 255, 0.03); /* Very subtle transparent white for answer background */
    border-radius: 0 0 8px 8px;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 2000px !important; /* !important to ensure override */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-login__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 1024px) {
    .page-login__security-content,
    .page-login__new-user-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-login__security-image-wrapper,
    .page-login__new-user-image-wrapper {
        order: -1; /* Image appears above text on mobile */
    }

    .page-login__security-text .page-login__section-title,
    .page-login__new-user-text .page-login__section-title {
        text-align: center;
    }

    .page-login__security-text .page-login__section-title::after,
    .page-login__new-user-text .page-login__section-title::after {
        margin: 15px auto 0;
    }

    .page-login__security-text .page-login__paragraph,
    .page-login__new-user-text .page-login__paragraph {
        text-align: center;
    }

    .page-login__security-list,
    .page-login__new-user-benefits-list {
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .page-login {
        padding-top: 10px; /* Mobile fixed header spacing */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__hero-section {
        padding: 60px 15px;
        min-height: 500px;
    }

    .page-login__login-card {
        padding: 30px 20px;
        max-width: 100%;
    }

    .page-login__main-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .page-login__input {
        padding: 12px 15px;
        font-size: 15px;
    }

    .page-login__login-button,
    .page-login__register-button,
    .page-login__card-button,
    .page-login__register-cta-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .page-login__section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .page-login__paragraph {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__troubleshooting-section,
    .page-login__new-user-section,
    .page-login__faq-section {
        padding: 50px 0;
    }

    .page-login__benefit-title,
    .page-login__list-item-title,
    .page-login__card-title {
        font-size: 20px;
    }

    .page-login__benefit-description,
    .page-login__security-list-item p,
    .page-login__card-description,
    .page-login__new-user-benefits-list li p {
        font-size: 15px;
    }

    .page-login__faq-question {
        padding: 15px 20px;
    }

    .page-login__faq-question h3 {
        font-size: 16px;
    }

    .page-login__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }

    .page-login__faq-answer {
        padding: 0 20px;
    }

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px !important;
    }
    
    /* General image responsiveness */
    .page-login img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
}

/* Ensure images and buttons do not break layout on smaller screens */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-login__login-button,
.page-login__register-button,
.page-login__card-button,
.page-login__register-cta-button {
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

/* Dark background sections for contrast with light text */
.page-login__dark-bg {
    background-color: #000000; /* Ensuring dark background */
    color: #ffffff; /* Light text for dark background */
}

/* Contrast fix for elements that might inherit too dark background */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}