/* style/login.css */
/* Reset & 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 is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-login__main-title {
    font-size: 3.5em;
    color: #E63946; /* Bright red for emphasis */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Login Card */
.page-login__login-card {
    background: rgba(10, 38, 71, 0.9); /* #0A2647 with some transparency */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid #E63946;
}

.page-login__card-title {
    font-size: 2em;
    color: #FFD700; /* Gold accent */
    margin-bottom: 30px;
    text-align: center;
}

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

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

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

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-login__form-input:focus {
    outline: none;
    border-color: #FFD700;
    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: 0.9em;
}

.page-login__checkbox-group {
    display: flex;
    align-items: center;
}

.page-login__checkbox-input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #E63946;
}

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

.page-login__forgot-password {
    color: #E63946;
    text-decoration: none;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 15px 20px;
    background-color: #E63946;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

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

.page-login__register-text {
    margin-top: 25px;
    color: #f0f0f0;
    text-align: center;
}

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

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

/* General Sections */
.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: #E63946;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-login__dark-section {
    background-color: #0A2647; /* Primary brand color */
    padding: 80px 0;
    color: #ffffff;
}

.page-login__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0;
}

/* Features Section */
.page-login__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-login__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.page-login__feature-item:hover {
    transform: translateY(-10px);
}

.page-login__feature-icon {
    width: 100px; 
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

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

.page-login__feature-description {
    color: #f0f0f0;
    font-size: 0.95em;
}

/* Security Section */
.page-login__security-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    padding: 80px 0;
    color: #ffffff;
}

.page-login__security-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-login__security-content {
    flex: 1;
}

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

.page-login__security-list-item {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23E63946" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: #E63946;
    border: 2px solid #E63946;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

/* Benefits Section */
.page-login__benefits-section {
    background-color: #f8f8f8; /* Light background for contrast */
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

.page-login__benefits-section .page-login__section-title {
    color: #0A2647; /* Dark primary color for title */
}

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

.page-login__benefit-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333333; /* Dark text for light card background */
}

.page-login__benefit-card:hover {
    transform: translateY(-10px);
}

.page-login__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-login__benefit-heading {
    font-size: 1.5em;
    color: #0A2647; /* Primary brand color for heading */
    margin-bottom: 15px;
}

.page-login__benefit-description {
    color: #555555;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-login__benefits-section .page-login__btn-secondary {
    border-color: #0A2647;
    color: #0A2647;
}

.page-login__benefits-section .page-login__btn-secondary:hover {
    background-color: #0A2647;
    color: #ffffff;
}

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

.page-login__faq-list {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(230, 57, 70, 0.2);
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(230, 57, 70, 0.4);
}

.page-login__faq-heading {
    margin: 0;
    font-size: 1.2em;
    color: #FFD700;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* For '-' symbol if using plus/minus */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(10, 38, 71, 0.8);
    color: #f0f0f0;
}

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

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

.page-login__faq-cta {
    text-align: center;
    margin-top: 40px;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #E63946;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

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

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

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

.page-login__cta-button {
    margin-top: 30px;
    background-color: #E63946;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__login-card {
        padding: 30px;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__security-container {
        flex-direction: column;
        text-align: center;
    }
    .page-login__security-content,
    .page-login__security-image-wrapper {
        flex: none;
        width: 100%;
    }
    .page-login__security-list {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-login__btn-secondary {
        margin-left: auto;
        margin-right: auto;
    }
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile hero */
    }
    .page-login__hero-content {
        padding: 60px 20px;
    }
    .page-login__main-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__login-card {
        padding: 25px;
        max-width: 100%;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password {
        margin-top: 5px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__features-grid {
        grid-template-columns: 1fr;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-heading {
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
    }
    
    /* 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__security-container,
    .page-login__faq-list,
    .page-login__faq-item,
    .page-login__benefits-section,
    .page-login__benefit-card {
      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__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;
      margin-left: auto !important;
      margin-right: auto !important;
    }
    
    .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;
      overflow: hidden !important;
    }

    .page-login__faq-cta .page-login__btn-primary {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-login__security-list-item {
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__card-title {
        font-size: 1.5em;
    }
    .page-login__submit-button,
    .page-login__btn-primary,
    .page-login__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-login__features-grid {
        gap: 20px;
    }
}