/* style/login.css */

/* Base styles for the login page, matching the dark background */
.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--background); /* #08160F */
    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;
    align-items: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden; /* Prevent content overflow */
}

.page-login__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 0;
    margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
    border-radius: 10px;
}

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

.page-login__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main); /* #F2FFF6 */
    border: none;
}

.page-login__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background: var(--card-bg); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
    border: 2px solid var(--border); /* #2E7A4E */
}

.page-login__btn-secondary:hover {
    background: var(--deep-green); /* #0A4B2C */
    transform: translateY(-2px);
}

/* Section titles */
.page-login__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--glow); /* #57E38D */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

/* How-to-Login Section */
.page-login__how-to-login {
    padding: 60px 0;
}

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

.page-login__step-card {
    background-color: var(--card-bg); /* #11271B */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border); /* #2E7A4E */
}

.page-login__step-title {
    font-size: 1.5rem;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__step-description {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-login__image-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 40px;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

/* Benefits Section */
.page-login__benefits {
    padding: 60px 0;
    background-color: var(--deep-green); /* #0A4B2C */
}

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

.page-login__benefit-card {
    background-color: var(--card-bg); /* #11271B */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border); /* #2E7A4E */
}

.page-login__benefit-title {
    font-size: 1.4rem;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__benefit-description {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
}

/* Troubleshooting Section */
.page-login__troubleshooting {
    padding: 60px 0;
}

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

.page-login__faq-item {
    background-color: var(--card-bg); /* #11271B */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border); /* #2E7A4E */
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    color: var(--text-main); /* #F2FFF6 */
    font-weight: bold;
    cursor: pointer;
    background-color: var(--card-bg); /* #11271B */
    user-select: none;
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

.page-login__faq-question::-webkit-details-marker {
    display: none; /* Hide default arrow for <summary> */
}

.page-login__faq-question:hover {
    background-color: var(--deep-green); /* #0A4B2C */
}

.page-login__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow); /* #57E38D */
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    max-height: 0; /* For JS based accordion, though <details> handles natively */
    overflow: hidden; /* For JS based accordion */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS based accordion */
}

.page-login__faq-item[open] .page-login__faq-answer {
    max-height: 2000px; /* Ample height for expansion with <details> */
    padding-top: 10px;
}

/* Security Tips Section */
.page-login__security-tips {
    padding: 60px 0;
    background-color: var(--background); /* #08160F */
}

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

.page-login__security-item {
    background-color: var(--card-bg); /* #11271B */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border); /* #2E7A4E */
}

.page-login__security-subtitle {
    font-size: 1.3rem;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__security-item p {
    color: var(--text-secondary); /* #A7D9B8 */
    font-size: 1rem;
}

/* Conclusion Section */
.page-login__conclusion {
    padding: 60px 0;
    text-align: center;
}

.page-login__conclusion-text {
    font-size: 1.1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__cta-buttons--bottom {
    margin-top: 30px;
}

/* Links */
.page-login__link {
    color: var(--glow); /* #57E38D */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__link:hover {
    color: var(--gold); /* #F2C14E */
    text-decoration: underline;
}

/* Highlight text */
.page-login__highlight {
    color: var(--glow); /* #57E38D */
    font-weight: bold;
}

/* Custom colors from prompt */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-login__hero-content {
        padding: 0 15px;
    }

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

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

    .page-login__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* All containers with images/content */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section,
    .page-login__how-to-login,
    .page-login__benefits,
    .page-login__troubleshooting,
    .page-login__security-tips,
    .page-login__faq-section,
    .page-login__conclusion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Adjust padding for first section to be small */
    .page-login__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }

    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure text inside button has padding */
        padding-right: 15px;
    }

    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-login__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-login__hero-image-wrapper {
        margin-bottom: 20px;
    }
}

/* Ensure content area images are not smaller than 200px (desktop) */
.page-login__image-full {
    min-width: 200px;
    min-height: 200px;
}
.page-login__hero-image {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters on images */
.page-login img {
    filter: none !important;
}