/* style/login.css */

/* Base styles for the login page */
.page-login {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background handled by shared.css */
}

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

.page-login__section {
    padding: 60px 0;
    text-align: center;
}

.page-login__section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-login__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-login__hero-background-img {
    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;
    margin: 0 auto;
}

.page-login__hero-title {
    font-size: 52px;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-login__login-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-login__login-card-title {
    font-size: 28px;
    color: #26A9E0;
    margin-bottom: 25px;
    text-align: center;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

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

.page-login__btn-login {
    display: block;
    width: 100%;
    padding: 14px 25px;
    background-color: #EA7C07; /* Custom login button color */
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-login:hover {
    background-color: #d16e06;
}

.page-login__btn-register {
    display: block;
    width: 100%;
    padding: 14px 25px;
    background-color: #26A9E0; /* Brand color for register button */
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-register:hover {
    background-color: #1e87b4;
}

.page-login__forgot-password {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #26A9E0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

/* Why Login Section */
.page-login__why-login {
    background-color: rgba(255, 255, 255, 0.03);
}

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

.page-login__feature-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
    width: 250px; /* Min size 200px, but visually larger */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__feature-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__feature-text {
    font-size: 16px;
    color: #f0f0f0;
}

/* How to Login Section */
.page-login__how-to-login {
    background-color: #0a0a0a;
}

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

.page-login__step-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-top: 60px;
}

.page-login__step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.page-login__step-title {
    font-size: 20px;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__step-text {
    font-size: 16px;
    color: #f0f0f0;
}

.page-login__cta-area {
    margin-top: 60px;
    background: rgba(38, 169, 224, 0.1);
    padding: 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-login__cta-text {
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background-color: #EA7C07;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary:hover {
    background-color: #d16e06;
}

/* Troubleshooting Section */
.page-login__troubleshooting {
    background-color: rgba(255, 255, 255, 0.03);
}

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

.page-login__issue-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__issue-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__issue-text {
    font-size: 16px;
    color: #f0f0f0;
}

.page-login__support-cta {
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-login__support-text {
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    background-color: transparent;
    color: #26A9E0;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Security Measures Section */
.page-login__security-measures {
    background-color: #0a0a0a;
}

.page-login__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-login__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    max-width: 100%;
    display: block;
}

.page-login__security-list {
    flex: 1;
    min-width: 300px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-login__security-list-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-login__security-list-title {
    font-size: 20px;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__security-list-text {
    font-size: 16px;
    color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits {
    background-color: rgba(255, 255, 255, 0.03);
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
    width: 250px; /* Min size 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__benefit-text {
    font-size: 16px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-login__faq {
    background-color: #0a0a0a;
}

.page-login__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.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.12);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-q-text {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
}

.page-login__faq-toggle {
    font-size: 24px;
    color: #26A9E0;
    font-weight: bold;
    line-height: 1;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes 'X' or '−' */
}

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

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

.page-login__faq-a-text {
    font-size: 16px;
    color: #f0f0f0;
    margin: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 44px;
    }
    .page-login__hero-description {
        font-size: 20px;
    }
    .page-login__section-title {
        font-size: 32px;
    }
    .page-login__section-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-login__hero-title {
        font-size: 36px;
    }
    .page-login__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .page-login__login-card {
        margin-top: 20px;
        padding: 25px;
    }
    .page-login__login-card-title {
        font-size: 24px;
    }
    .page-login__section {
        padding: 40px 0;
    }
    .page-login__section-title {
        font-size: 28px;
    }
    .page-login__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-login__feature-grid,
    .page-login__steps-grid,
    .page-login__issues-grid,
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__security-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__security-image {
        max-width: 100%;
    }
    .page-login__cta-area,
    .page-login__support-cta {
        padding: 30px;
    }
    .page-login__cta-text,
    .page-login__support-text {
        font-size: 18px;
    }
    .page-login__faq-list {
        margin-top: 30px;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-q-text {
        font-size: 16px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    /* Mobile image and container responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__section,
    .page-login__container,
    .page-login__login-card,
    .page-login__feature-item,
    .page-login__step-item,
    .page-login__issue-item,
    .page-login__security-list-item,
    .page-login__benefit-item,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px; /* Add padding to prevent content touching edges */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Specific adjustment for elements that have their own padding */
    .page-login__hero-section,
    .page-login__section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsive */
    .page-login__btn-login,
    .page-login__btn-register,
    .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,
    .page-login__cta-area,
    .page-login__support-cta {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 30px;
    }
    .page-login__hero-description {
        font-size: 16px;
    }
    .page-login__section-title {
        font-size: 24px;
    }
    .page-login__login-card-title {
        font-size: 22px;
    }
    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-primary,
    .page-login__btn-secondary {
        font-size: 16px;
        padding: 12px 20px;
    }
}