/* style/login.css */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #FFF5E1; /* Text Main */
    background-color: #B71C1C; /* Background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
    display: flex;
    flex-direction: column; /* Stacks image wrapper and content vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as shared.css handles body padding */
    background-color: #7A0E0E;
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px;
}

.page-login__hero-content {
    padding: 40px 20px;
    max-width: 800px;
    margin-top: 20px; /* Positive margin to separate from image */
    background: rgba(19, 1, 1, 0.7); /* Keep background for contrast */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__hero-title {
    font-size: clamp(2em, 3.5vw, 3em);
    color: #FFD86A; /* Gold-like */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px #FFCC66; /* Glow */
}

.page-login__hero-description {
    font-size: 1.1em;
    color: #FFF5E1;
    margin-bottom: 30px;
}

.page-login__hero-cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Buttons */
.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
    color: #7A0E0E; /* Deep Red for contrast */
    border: none;
    cursor: pointer;
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-login__btn-secondary {
    background: #7A0E0E; /* Deep Red */
    color: #FFD86A; /* Gold-like */
    border: 2px solid #FFD86A; /* Border */
    padding: 12px 30px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-login__btn-secondary:hover {
    background: #FFD86A;
    color: #7A0E0E;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #B71C1C;
    text-align: center;
}

.page-login__section-title {
    font-size: 2.2em;
    color: #FFD86A;
    margin-bottom: 20px;
    text-shadow: 0 0 8px #FFCC66;
}

.page-login__section-description {
    font-size: 1.1em;
    color: #FFF5E1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-form {
    background: #D32F2F; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Border */
}

.page-login__form-group {
    margin-bottom: 25px;
    text-align: left;
}

.page-login__form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
    color: #FFF5E1;
    font-weight: bold;
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #F2B544; /* Border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFF5E1;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    outline: none;
    border-color: #FFD86A;
    box-shadow: 0 0 8px rgba(255, 216, 106, 0.5);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.page-login__forgot-password-link {
    color: #FFD86A;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #FFCC66;
    text-decoration: underline;
}

.page-login__login-button {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
}

.page-login__register-prompt {
    margin-top: 30px;
    font-size: 1em;
    color: #FFF5E1;
}

.page-login__register-link {
    color: #FFD86A;
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    color: #FFCC66;
    text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #7A0E0E;
    text-align: center;
}

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

.page-login__benefit-card {
    background: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Border */
    transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
}

.page-login__benefit-icon {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #FFD86A;
    margin-bottom: 15px;
}

.page-login__benefit-description {
    font-size: 0.95em;
    color: #FFF5E1;
}

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #B71C1C;
    text-align: center;
}

.page-login__troubleshooting-content {
    background: #D32F2F; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 40px auto 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Border */
    text-align: left;
}

.page-login__content-subtitle {
    font-size: 1.6em;
    color: #FFD86A;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-login__troubleshooting-content p {
    font-size: 1em;
    color: #FFF5E1;
    margin-bottom: 15px;
}

.page-login__text-link {
    color: #FFD86A;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-login__text-link:hover {
    color: #FFCC66;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #7A0E0E;
    text-align: center;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-login__security-list li {
    background: #D32F2F; /* Card BG */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border */
    color: #FFF5E1;
    font-size: 1em;
}

.page-login__security-list li strong {
    color: #FFD86A;
}

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

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

.page-login__faq-item {
    background: #D32F2F; /* Card BG */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #F2B544; /* Border */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    color: #FFD86A;
    font-size: 1.2em;
    font-weight: bold;
    list-style: none;
    position: relative;
}

.page-login__faq-question::-webkit-details-marker {
    display: none;
}

.page-login__faq-question .page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    padding: 0 20px 20px;
    color: #FFF5E1;
    font-size: 1em;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-content {
        margin-top: 10px;
        padding: 30px 15px;
    }
    .page-login__hero-title {
        font-size: clamp(1.8em, 3.5vw, 2.5em);
    }
    .page-login__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__container {
        padding: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__hero-section {
        padding-top: 10px !important;
    }

    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
    }

    .page-login__hero-content {
        margin-top: 10px; /* Adjust for smaller screens */
        padding: 25px 15px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-login__hero-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
        line-height: 1.3;
    }

    .page-login__hero-description {
        font-size: 1em;
    }

    /* Buttons */
    .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__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Form */
    .page-login__login-form {
        padding: 30px 20px;
        max-width: 100%;
    }

    .page-login__form-input {
        width: 100%;
    }

    .page-login__form-actions {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .page-login__forgot-password-link {
        margin-top: 10px;
    }

    /* Benefits Grid */
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-login__benefit-icon {
        max-width: 150px;
    }

    /* Troubleshooting & Security */
    .page-login__troubleshooting-content,
    .page-login__security-list {
        padding: 30px 20px;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-login__content-subtitle {
        font-size: 1.4em;
    }

    /* FAQ */
    .page-login__faq-list {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-login__faq-question {
        font-size: 1.1em;
    }

    .page-login__faq-answer {
        font-size: 0.9em;
    }

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