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

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #0A0A0A;
    border-bottom: 1px solid #3A2A12;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for mood */
}

.page-login__hero-content {
    max-width: 800px;
    text-align: center;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 1;
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: #FFD36B; /* Glow color for emphasis */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.5); /* Subtle glow */
}

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

.page-login__form {
    background-color: #111111; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #3A2A12; /* Border */
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    box-sizing: border-box;
}

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

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

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

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

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
    color: #FFF6D6;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #F2C14E; /* Highlight checkbox with brand color */
}

.page-login__checkbox-label {
    font-size: 0.95em;
}

.page-login__forgot-password {
    color: #F2C14E; /* Main color */
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for contrast on bright button */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-button:hover {
    opacity: 0.9;
}

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

.page-login__register-prompt p {
    margin-bottom: 10px;
}

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

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

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    color: #FFD36B;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 0 0 5px rgba(255, 211, 107, 0.3);
}

.page-login__section-intro {
    font-size: 1.05em;
    color: #FFF6D6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.page-login__paragraph {
    font-size: 1em;
    color: #FFF6D6;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #0A0A0A;
    border-top: 1px solid #3A2A12;
    padding-top: 60px;
}

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

.page-login__benefit-card {
    background-color: #111111;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #3A2A12;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.page-login__benefit-title {
    font-size: 1.4em;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__benefit-text {
    font-size: 0.95em;
    color: #FFF6D6;
    line-height: 1.6;
}

/* Guide Section */
.page-login__guide-section {
    background-color: #0A0A0A;
    border-top: 1px solid #3A2A12;
    padding-top: 60px;
}

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

.page-login__step-card {
    background-color: #111111;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #3A2A12;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-login__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 2px solid #3A2A12;
}

.page-login__step-title {
    font-size: 1.3em;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__step-text {
    font-size: 0.95em;
    color: #FFF6D6;
    line-height: 1.6;
}

/* Security Section */
.page-login__security-section {
    background-color: #0A0A0A;
    border-top: 1px solid #3A2A12;
    padding-top: 60px;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
}

.page-login__list-item {
    background-color: #111111;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #3A2A12;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.page-login__list-title {
    font-size: 1.3em;
    color: #F2C14E;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__list-text {
    font-size: 0.95em;
    color: #FFF6D6;
    line-height: 1.6;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #0A0A0A;
    border-top: 1px solid #3A2A12;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-login__faq-list {
    margin-bottom: 50px;
}

.page-login__faq-item {
    background-color: #111111;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #3A2A12;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.page-login__faq-question {
    font-size: 1.3em;
    color: #F2C14E;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-login__faq-answer {
    font-size: 0.95em;
    color: #FFF6D6;
    line-height: 1.6;
}

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

/* Final CTA Section */
.page-login__final-cta-section {
    background-color: #0A0A0A;
    border-top: 1px solid #3A2A12;
    padding-top: 60px;
    padding-bottom: 80px;
    text-align: center;
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for contrast */
    border: 2px solid transparent;
}

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

.page-login__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Border with main color */
}

.page-login__btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background-color: rgba(242, 193, 78, 0.1); /* Slight background on hover */
}

/* Figure and Image styles */
.page-login__figure {
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    background-color: #111111; /* Card BG */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #3A2A12;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-login__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
}

.page-login__figcaption {
    font-size: 0.9em;
    color: rgba(255, 246, 214, 0.8);
    margin-top: 15px;
    line-height: 1.5;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

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

    .page-login__benefits-grid,
    .page-login__steps-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* Top section title + CTA */
    .page-login__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }
    .page-login__hero-content {
        padding: 20px 15px 40px;
    }
    .page-login__main-title {
        font-size: clamp(1.6em, 7vw, 2.5em) !important;
        margin-bottom: 15px;
    }
    .page-login__description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__form {
        max-width: 100% !important;
        padding: 20px 15px;
    }
    .page-login__submit-button,
    .page-login__register-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password {
        align-self: flex-end;
    }

    /* Single-column long text container */
    .page-login__article-wrap {
        padding: 30px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__section-title {
        font-size: 1.8em !important;
        margin-bottom: 20px;
    }
    .page-login__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__paragraph,
    .page-login__benefit-text,
    .page-login__step-text,
    .page-login__list-text,
    .page-login__faq-answer {
        font-size: 0.9em;
    }

    /* Generic images and figures */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__figure {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px !important;
        margin: 30px auto !important;
        box-sizing: border-box !important;
    }
    .page-login__figcaption {
        font-size: 0.85em;
    }

    /* Buttons and button containers */
    .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: 12px 15px !important;
        font-size: 1em !important;
    }
    .page-login__cta-bottom,
    .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;
    }

    /* Registration tutorial/FAQ (text-based for this page) */
    .page-login__faq-item,
    .page-login__list-item,
    .page-login__benefit-card,
    .page-login__step-card {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }
    .page-login__faq-question,
    .page-login__list-title,
    .page-login__benefit-title,
    .page-login__step-title {
        font-size: 1.15em !important;
        margin-bottom: 10px !important;
    }
    .page-login__step-card {
        padding-top: 50px !important;
    }
    .page-login__step-number {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.2em !important;
        top: 15px !important;
    }
}