/* style/login.css */

/* Base styles for the login page */
.page-login {
    background-color: #B71C1C; /* Custom background color for the page content */
    color: #FFF5E1; /* Main text color on this dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* General bottom padding */
}

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

/* Hero Section */
.page-login__hero-section {
    padding-top: 10px; /* ~10px top padding for the first section as per rule */
    padding-bottom: 40px;
    text-align: center;
    background-color: #7A0E0E; /* Deep Red for hero background */
    border-bottom: 3px solid #F2B544; /* Border color */
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3em); /* H1 font size clamp, not fixed large value */
    font-weight: bold;
    color: #FFF5E1; /* Main text color */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow for readability */
}

.page-login__subtitle {
    font-size: 1.1em;
    color: #FFF5E1; /* Main text color */
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-login__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 30px;
}

/* General Button Styles */
.page-login__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to container width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red text for primary button */
    border: 2px solid #F4D34D; /* Gold border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #FFF5E1; /* Main text color */
    border: 2px solid #F2B544; /* Border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Form Section */
.page-login__form-section {
    padding: 50px 0;
}

.page-login__card {
    background-color: #D32F2F; /* Card BG */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Border color */
}

.page-login__section-title {
    font-size: 2.2em;
    color: #FFF5E1; /* Main text color */
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-login__form-description,
.page-login__section-description {
    font-size: 1.05em;
    color: #FFF5E1; /* Main text color */
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__form {
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    display: flex;
    flex-direction: column;
}

.page-login__form-label {
    font-size: 1em;
    color: #F4D34D; /* Gold color for labels */
    margin-bottom: 8px;
    font-weight: bold;
}

.page-login__form-input {
    padding: 12px 15px;
    border: 1px solid #F2B544; /* Border color */
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent dark background */
    color: #FFF5E1; /* Main text color */
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
    color: rgba(255, 245, 225, 0.7); /* Lighter placeholder text */
}

.page-login__form-input:focus {
    border-color: #FFCC66; /* Glow color on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 204, 102, 0.4); /* Glow effect */
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.page-login__btn-submit {
    width: 100%;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red text */
    border: 2px solid #F4D34D; /* Gold border */
}

.page-login__forgot-password {
    color: #F4D34D; /* Gold color */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #FFCC66; /* Glow color on hover */
    text-decoration: underline;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: #FFF5E1; /* Main text color */
}

.page-login__register-prompt a {
    color: #F4D34D; /* Gold color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-prompt a:hover {
    color: #FFCC66; /* Glow color on hover */
    text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    background-color: #7A0E0E; /* Deep Red background */
}

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

.page-login__benefit-card {
    text-align: center;
}

.page-login__card-title {
    font-size: 1.6em;
    color: #F4D34D; /* Gold color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__card-figure {
    margin: 0 auto 20px;
    max-width: 680px; /* Max width for blog images */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #F2B544; /* Border color */
}

.page-login__card-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
    width: 100%; /* HTML width/height attributes are for aspect ratio, CSS for display */
    height: 100%;
}

.page-login__card-text {
    font-size: 1em;
    color: #FFF5E1; /* Main text color */
}

.page-login__card-text strong {
    color: #F4D34D; /* Gold color for emphasized text */
}

/* Security Section */
.page-login__security-section {
    padding: 60px 0;
}

.page-login__dark-section {
    background-color: #C91F17; /* Main brand color for dark section */
    color: #ffffff; /* Forced white text on this background */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Border color */
}

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

.page-login__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter background for items */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__feature-title {
    font-size: 1.4em;
    color: #F4D34D; /* Gold color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__feature-text {
    font-size: 0.95em;
    color: #f0f0f0; /* Slightly off-white for text */
}

/* Guide Section */
.page-login__guide-section {
    padding: 60px 0;
    background-color: #B71C1C; /* Background color */
}

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

.page-login__step-card {
    text-align: left;
}

.page-login__step-title {
    font-size: 1.5em;
    color: #F4D34D; /* Gold color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__step-text {
    font-size: 1em;
    color: #FFF5E1; /* Main text color */
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #7A0E0E; /* Deep Red background */
}

.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__faq-item {
    background-color: #D32F2F; /* Card BG */
    border: 1px solid #F2B544; /* Border color */
    border-radius: 10px;
    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: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #FFF5E1; /* Main text color */
    cursor: pointer;
    background-color: #C91F17; /* Main brand color */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #E53935; /* Auxiliary color on hover */
}

.page-login__faq-item[open] .page-login__faq-question {
    border-bottom: 1px solid #F2B544; /* Border color when open */
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: #FFF5E1; /* Main text color */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #F4D34D; /* Gold color */
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or diamond */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #FFF5E1; /* Main text color */
    background-color: #D32F2F; /* Card BG */
}

/* App Download Section */
.page-login__app-download-section {
    padding: 60px 0;
    background-color: #B71C1C; /* Background color */
}

.page-login__promo-box {
    background-color: #D32F2F; /* Card BG */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Border color */
    text-align: center;
}

/* Contact Section */
.page-login__contact-section {
    padding: 60px 0;
    background-color: #7A0E0E; /* Deep Red background */
}

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

.page-login__contact-card {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__container {
        padding: 0 15px;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }

    .page-login__section-title {
        font-size: 2em;
    }

    .page-login__card {
        padding: 30px;
    }

    .page-login__form {
        max-width: 400px;
    }

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

@media (max-width: 768px) {
    /* Top section and CTA */
    .page-login__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 30px;
    }

    .page-login__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
        margin-bottom: 10px;
    }

    .page-login__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to container of buttons */
    }
    
    .page-login__btn {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important; /* Ensure internal padding */
        padding-right: 15px !important;
    }

    /* Single column long article container and cards */
    .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__card {
        padding: 25px !important;
        border-radius: 8px;
    }

    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    /* General images and figure */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-login__card-figure {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Buttons and button containers (already handled in general .page-login__btn and .page-login__cta-buttons) */
    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-login__btn-submit {
        width: 100% !important;
    }

    /* FAQ section */
    .page-login__faq-item {
        margin-bottom: 10px;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    /* Registration tutorial (guide section) */
    .page-login__guide-steps {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-login__step-title {
        font-size: 1.3em;
    }
    .page-login__step-text {
        font-size: 0.95em;
    }

    /* Promo box styling */
    .page-login__promo-box {
        padding: 30px 20px;
    }

    /* Security features and contact methods */
    .page-login__security-features,
    .page-login__contact-methods {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-login__feature-item,
    .page-login__contact-card {
        padding: 20px;
    }
    .page-login__feature-title,
    .page-login__contact-card h3 {
        font-size: 1.3em;
    }
}

/* Ensure no filter on images */
.page-login img {
    filter: none !important;
}