/* style/login.css */

/* Global styles within the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    line-height: 1.6;
}

/* Fixed header spacing - small top margin for the first section */
.page-login__hero-section {
    padding-top: 10px; /* Small top padding, body handles main header offset */
    position: relative;
    overflow: hidden; /* Ensure hero image doesn't overflow */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure hero section has a decent height */
    text-align: center;
}

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

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px; /* Constrain login card width */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.page-login__login-card {
    background: #111111; /* Card B G */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.page-login__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font-size clamp */
    color: #FFD36B; /* Glow */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

.page-login__subtitle {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 30px;
}

.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;
    color: #FFF6D6; /* Text Main */
    font-size: 0.95rem;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12; /* Border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFF6D6; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    outline: none;
    border-color: #FFD36B; /* Glow */
    box-shadow: 0 0 5px rgba(255, 211, 107, 0.5);
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.page-login__forgot-password,
.page-login__register-link {
    color: #FFD36B; /* Glow */
    text-decoration: none;
}

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

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

.page-login__checkbox {
    /* Custom checkbox styling if needed, otherwise default */
}

.page-login__checkbox-label {
    color: #FFF6D6; /* Text Main */
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #111111; /* Dark text for contrast on bright button */
    border: none;
}

.page-login__btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-login__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Glow */
    border: 2px solid #FFD36B; /* Glow */
}

.page-login__btn-secondary:hover {
    background: #FFD36B; /* Glow */
    color: #111111; /* Dark text for contrast */
}

.page-login__register-text {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #FFF6D6; /* Text Main */
}

/* General section styling */
.page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #FFD36B; /* Glow */
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

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

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

.page-login__info-section,
.page-login__security-section,
.page-login__download-section,
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-login__dark-bg {
    background-color: #0A0A0A; /* Background */
}

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

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

.page-login__feature-item:hover,
.page-login__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-login__feature-icon,
.page-login__security-icon {
    width: 250px; /* Example, actual image will be from GALLERY */
    height: 200px;
    object-fit: contain; /* For icons, contain might be better */
    background-color: rgba(255, 255, 255, 0.05); /* Placeholder background */
    padding: 15px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* Responsive image */
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
    border-radius: 5px;
}

.page-login__feature-title,
.page-login__security-title {
    font-size: 1.3rem;
    color: #FFD36B; /* Glow */
    margin-bottom: 15px;
}

.page-login__feature-text,
.page-login__security-text {
    font-size: 0.95rem;
    color: #FFF6D6; /* Text Main */
}

/* Download section */
.page-login__download-section {
    background-color: #111111; /* Card B G */
}

.page-login__download-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-align: left;
}

.page-login__text-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-login__text-content .page-login__section-title,
.page-login__text-content .page-login__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-login__download-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.page-login__app-download-button {
    flex: 1;
    max-width: 250px;
}

.page-login__image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__download-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-login__faq-item {
    background: #111111; /* Card B G */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    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: rgba(255, 255, 255, 0.03);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    font-size: 1.15rem;
    color: #FFD36B; /* Glow */
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-login__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFD36B; /* Glow */
    margin-left: 15px;
    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; /* Initial padding, will be 15px when active */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #FFF6D6; /* Text Main */
    text-align: left;
}

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

.page-login__faq-answer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Call to Action Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.page-login__main-cta {
    min-width: 200px;
}

/* Copyright Section */
.page-login__copyright-section {
    padding: 30px 20px;
    background-color: #111111; /* Card B G */
    text-align: center;
    border-top: 1px solid #3A2A12; /* Border */
}

.page-login__copyright-text {
    font-size: 0.85rem;
    color: rgba(255, 246, 214, 0.7); /* Lighter version of Text Main */
    margin: 0;
}


/* --- Responsive Design --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-login__hero-content {
        max-width: 450px;
        padding: 15px;
    }

    .page-login__login-card {
        padding: 30px;
    }

    .page-login__main-title {
        font-size: clamp(2rem, 4.5vw, 2.5rem);
    }

    .page-login__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .page-login__container {
        padding: 30px 15px;
    }

    .page-login__info-section,
    .page-login__security-section,
    .page-login__download-section,
    .page-login__cta-section {
        padding: 60px 0;
    }

    .page-login__features-grid,
    .page-login__security-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-login__feature-item,
    .page-login__security-item {
        padding: 25px;
    }
}