/* style/login.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --text-main-color: #FFF6D6;
    --card-bg-color: #111111;
    --body-bg-color: #0A0A0A;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --header-offset: 80px; /* Default value, shared.css should define this */
}

.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for dark body background */
    background-color: var(--body-bg-color);
}

/* --- General Section Styling --- */
.page-login__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
    position: relative;
    padding-bottom: 10px;
}

.page-login__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.page-login__dark-bg {
    background-color: var(--body-bg-color);
    color: var(--text-main-color);
}

.page-login__light-bg {
    background-color: #f8f8f8; /* A very light grey to contrast with dark body */
    color: #333333; /* Dark text for light background */
}

.page-login__light-bg .page-login__section-title {
    color: #333333;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-login__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.page-login__main-title {
    font-size: clamp(32px, 4vw, 56px); /* Responsive font size */
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
    font-size: 18px;
    color: var(--text-main-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-login__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

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

.page-login__feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-login__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-login__feature-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
}

.page-login__feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-login__feature-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

/* --- Login Form Section --- */
.page-login__form-wrapper {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--text-main-color);
    font-weight: 600;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #0d0d0d;
    color: var(--text-main-color);
    font-size: 16px;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #666666;
}

.page-login__form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.3);
}

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

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

.page-login__checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.page-login__checkbox-label {
    color: var(--text-main-color);
}

.page-login__forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-login__submit-button {
    width: 100%;
    padding: 14px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 10px var(--glow-color);
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
}

.page-login__register-text {
    color: var(--text-main-color);
    margin-bottom: 10px;
}

.page-login__register-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Security Section --- */
.page-login__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.page-login__security-text {
    flex: 1;
    min-width: 300px;
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.page-login__security-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555555;
}

.page-login__security-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* --- Troubleshoot Section --- */
.page-login__troubleshoot-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
}

.page-login__troubleshoot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-login__troubleshoot-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-login__troubleshoot-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-login__troubleshoot-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main-color);
}

.page-login__contact-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-login__contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
details.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-login__faq-item summary.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #333333;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
    display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
    background: #f5f5f5;
}
.page-login__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-login__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
    padding: 0 25px 25px;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
    color: #555555;
}

.page-login__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* --- Image & Button Responsive Styles --- */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-login__cta-button,
.page-login__submit-button,
.page-login__contact-button,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__form-wrapper,
.page-login__features-grid,
.page-login__security-content,
.page-login__troubleshoot-list,
.page-login__faq-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(28px, 5vw, 48px);
    }
    .page-login__section-title {
        font-size: 30px;
    }
    .page-login__description {
        font-size: 17px;
    }
    .page-login__cta-button {
        font-size: 18px;
        padding: 14px 35px;
    }
    .page-login__feature-title {
        font-size: 22px;
    }
    .page-login__feature-text {
        font-size: 15px;
    }
    .page-login__form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-image img {
        border-radius: 8px;
    }
    .page-login__main-title {
        font-size: clamp(24px, 6vw, 40px);
        margin-bottom: 15px;
    }
    .page-login__description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-login__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-login__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-login__section-title::after {
        width: 60px;
    }
    .page-login__container {
        padding: 30px 15px;
    }
    .page-login__feature-card {
        padding: 20px;
    }
    .page-login__feature-card img {
        height: 200px;
    }
    .page-login__feature-title {
        font-size: 20px;
    }
    .page-login__feature-text {
        font-size: 14px;
    }
    .page-login__form-wrapper {
        padding: 25px;
    }
    .page-login__form-label,
    .page-login__form-input,
    .page-login__checkbox-label,
    .page-login__forgot-password,
    .page-login__register-text,
    .page-login__register-link {
        font-size: 15px;
    }
    .page-login__submit-button {
        padding: 12px 15px;
        font-size: 16px;
    }
    .page-login__security-text,
    .page-login__security-item,
    .page-login__troubleshoot-intro,
    .page-login__troubleshoot-text {
        font-size: 15px;
    }
    .page-login__security-item::before {
        font-size: 18px;
    }
    .page-login__troubleshoot-heading {
        font-size: 20px;
    }
    .page-login__contact-button {
        padding: 10px 20px;
        font-size: 15px;
    }

    /* Mobile specific image and button overrides */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__cta-button,
    .page-login__submit-button,
    .page-login__contact-button,
    .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__form-wrapper,
    .page-login__features-grid,
    .page-login__security-content,
    .page-login__troubleshoot-list,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__features-grid {
        grid-template-columns: 1fr;
    }
    .page-login__security-content {
        flex-direction: column;
    }

    /* FAQ */
    details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
    .page-login__faq-qtext { font-size: 16px; }
    .page-login__faq-toggle {
        font-size: 24px;
        width: 25px;
        margin-left: 10px;
    }
    details.page-login__faq-item .page-login__faq-answer {
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: clamp(22px, 7vw, 36px);
    }
    .page-login__section-title {
        font-size: 24px;
    }
    .page-login__hero-image img {
        border-radius: 6px;
    }
    .page-login__form-wrapper {
        padding: 20px;
    }
    .page-login__forgot-password {
        margin-top: 10px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}