/* style/login.css */

/* Base 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__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-login__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__dark-bg .page-login__section-title {
    color: #ffffff;
}

.page-login__light-bg .page-login__section-title {
    color: #017439;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px;
    box-sizing: border-box;
}

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

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Custom color for main title */
}

.page-login__intro-description {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.page-login__login-card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__card-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-login__label {
    display: block;
    margin-bottom: 8px;
    font-size: 1em;
    color: #ffffff;
}

.page-login__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: #0a0a0a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.page-login__btn-primary {
    display: block;
    padding: 12px 25px;
    background-color: #C30808; /* Custom color for Login button */
    color: #FFFF00; /* Custom color for Login font */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

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

.page-login__btn-secondary {
    display: block;
    padding: 12px 25px;
    background-color: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #005a2d;
    color: #ffffff;
}

.page-login__forgot-password-link {
    display: block;
    margin-top: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding-top: 60px;
    padding-bottom: 60px;
    color: #ffffff; /* Text color for dark body background */
}

.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-color: #1a1a1a; /* Darker background for cards on dark body */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

.page-login__benefit-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

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

.page-login__benefit-card p {
    font-size: 1em;
    color: #cccccc;
}

/* Security Section */
.page-login__security-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-login__security-item {
    background-color: #005a2d; /* Dark green for security items */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-login__security-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

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

.page-login__security-item p {
    font-size: 1em;
    color: #cccccc;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding-top: 60px;
    padding-bottom: 60px;
    color: #ffffff; /* Text color for dark body background */
}

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

.page-login__troubleshooting-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-login__troubleshooting-item .page-login__item-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-login__troubleshooting-item p {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-login__troubleshooting-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__troubleshooting-link:hover {
    background-color: #005a2d;
}

/* Why Choose Section */
.page-login__why-choose-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-login__why-choose-item {
    background-color: #005a2d;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-login__why-choose-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-login__why-choose-item .page-login__item-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-login__why-choose-item p {
    font-size: 1em;
    color: #cccccc;
}

/* FAQ Section */
.page-login__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    color: #ffffff; /* Text color for dark body background */
}

.page-login__faq-container {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-login__faq-item {
    background-color: #1a1a1a; /* Darker background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #0a0a0a; /* Even darker background for question */
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00;
    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;
    color: #cccccc;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__intro-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 600px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__intro-description {
        font-size: 1em;
    }
    .page-login__login-card {
        padding: 25px;
        max-width: 100%;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
    .page-login__benefits-grid, 
    .page-login__security-features, 
    .page-login__troubleshooting-grid, 
    .page-login__why-choose-grid {
        grid-template-columns: 1fr;
    }
    .page-login__content-area {
        padding: 30px 15px;
    }
    
    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image-wrapper,
    .page-login__benefit-card,
    .page-login__security-item,
    .page-login__troubleshooting-item,
    .page-login__why-choose-item,
    .page-login__faq-item,
    .page-login__login-card,
    .page-login__hero-content,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__troubleshooting-section,
    .page-login__why-choose-section,
    .page-login__faq-section,
    .page-login__faq-container {
        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 header offset on mobile */
    }
    /* Buttons responsive */
    .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__form-actions {
        flex-direction: column !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__card-title {
        font-size: 1.5em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__faq-question h3 {
        font-size: 1em;
    }
}

/* Contrast Fixes */
.page-login p, .page-login li, .page-login__section-description {
  color: #cccccc;
}

.page-login__hero-content p {
  color: #ffffff;
}

.page-login__login-card p, .page-login__login-card label {
  color: #ffffff;
}

.page-login__benefit-card p {
  color: #cccccc;
}

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

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

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

.page-login__faq-answer p {
  color: #cccccc;
}

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

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

.page-login__light-bg p {
  color: #333333;
}

.page-login__light-bg .page-login__section-description {
  color: #333333;
}

.page-login__light-bg .page-login__benefit-title {
  color: #017439;
}

.page-login__light-bg .page-login__item-title {
  color: #017439;
}