/* style/login.css */

/* Global styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 10px 0 60px; /* Small top padding, larger bottom padding */
    background-color: #0A0A0A; /* Background */
    overflow: hidden; /* Ensure no image overflow */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 40px; /* Space between image and content */
}

.page-login__hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.page-login__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFF6D6;
}

.page-login__tagline {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #FFD36B; /* Glow for tagline */
}

.page-login__login-form-container {
    background-color: #111111; /* Card B G */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #3A2A12; /* Border */
    max-width: 400px;
    margin: 0 auto;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12;
    border-radius: 5px;
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 246, 214, 0.5); /* Lighter placeholder */
}

.page-login__forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #FFD36B; /* Glow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #F2C14E; /* Main color on hover */
}

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #0A0A0A; /* Dark text for contrast on bright button */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-login__register-prompt {
    margin-top: 20px;
    color: #FFF6D6;
}

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

.page-login__register-link:hover {
    color: #F2C14E; /* Main color on hover */
}

.page-login__btn-secondary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    margin-top: 15px;
    border: 2px solid #F2C14E; /* Main color border */
    border-radius: 5px;
    background-color: transparent;
    color: #FFF6D6; /* Text Main */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #F2C14E; /* Main color on hover */
    color: #0A0A0A; /* Dark text on hover */
}

/* General Section Styling */
.page-login__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #F2C14E; /* Main color for section titles */
}

.page-login__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #FFF6D6;
}

/* Why Login Section */
.page-login__why-login-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-login__feature-card {
    background-color: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #3A2A12; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

.page-login__feature-icon {
    width: 100%;
    height: auto;
    max-width: 300px; /* Constrain image width */
    max-height: 200px; /* Constrain image height */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block; /* Ensure block for margin auto */
    margin-left: auto;
    margin-right: auto;
}

.page-login__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #F2C14E; /* Main color for card titles */
}

.page-login__card-text {
    font-size: 1rem;
    color: #FFF6D6;
}

/* Seamless Process Section */
.page-login__seamless-process-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__process-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__list-item {
    background-color: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #3A2A12; /* Border */
}

.page-login__list-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD36B; /* Glow */
}

.page-login__list-text {
    font-size: 1rem;
    color: #FFF6D6;
}

/* Security Section */
.page-login__security-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.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: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #3A2A12; /* Border */
}

.page-login__security-icon {
    width: 100%;
    height: auto;
    max-width: 150px; /* Specific size for security icons */
    max-height: 112px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__security-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #F2C14E; /* Main color */
}

.page-login__security-text {
    font-size: 1rem;
    color: #FFF6D6;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__troubleshooting-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__text-link {
    color: #FFD36B; /* Glow */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__text-link:hover {
    color: #F2C14E; /* Main color on hover */
}

/* Mobile App Section */
.page-login__mobile-app-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__mobile-app-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-login__mobile-app-content {
    flex: 1;
}

.page-login__app-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-login__app-features .page-login__list-item {
    background-color: transparent; /* Override list-item background */
    border: none;
    padding: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #FFF6D6;
    position: relative;
    padding-left: 25px;
}

.page-login__app-features .page-login__list-item::before {
    content: '✓';
    color: #F2C14E; /* Main color checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-login__download-app-cta {
    margin-top: 30px;
    max-width: 300px; /* Constrain button width */
    margin-left: auto;
    margin-right: auto;
}

.page-login__mobile-app-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-login__mobile-app-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Display size for image */
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #3A2A12; /* Border */
}


/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__faq-list {
    margin-top: 40px;
}

.page-login__faq-item {
    background-color: #111111; /* Card B G */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111; /* Card B G */
    color: #F2C14E; /* Main color */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #1A1A1A; /* Slightly darker on hover */
}

.page-login__faq-title {
    font-size: 1.2rem;
    margin: 0;
    color: #F2C14E;
}

.page-login__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: #FFD36B; /* Glow */
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus to X / Minus */
    color: #F2C14E;
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #0A0A0A; /* Background */
}

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

.page-login__faq-text {
    font-size: 1rem;
    color: #FFF6D6;
    margin: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-image {
        max-height: 500px;
    }
    .page-login__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-login__tagline {
        font-size: 1.1rem;
    }
    .page-login__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }
    .page-login__mobile-app-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-login__mobile-app-content {
        order: 2; /* Content below image on mobile */
    }
    .page-login__mobile-app-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
    .page-login__download-app-cta {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding: 10px 0 40px;
    }
    .page-login__hero-image {
        max-height: 400px;
        margin-bottom: 30px;
    }
    .page-login__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        padding: 0 15px;
    }
    .page-login__tagline {
        font-size: 1rem;
        padding: 0 15px;
    }
    .page-login__login-form-container {
        padding: 30px 20px;
        max-width: 90%;
    }
    .page-login__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        padding: 0 15px;
    }
    .page-login__section-description {
        font-size: 1rem;
        padding: 0 15px;
    }
    .page-login__container {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image,
    .page-login__feature-icon,
    .page-login__security-icon,
    .page-login__mobile-app-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-form-container,
    .page-login__mobile-app-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Buttons 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 !important;
        padding-right: 15px !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 !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-login__cta-buttons {
        flex-direction: column !important;
    }

    /* FAQ specific for mobile */
    .page-login__faq-question,
    .page-login__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 15px 20px;
    }
    .page-login__app-features .page-login__list-item {
        padding-left: 20px; /* Adjust for checkmark */
    }
    .page-login__app-features .page-login__list-item::before {
        left: -5px; /* Adjust checkmark position */
    }
}