/* style/login.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-light: #F4F7FB;
    --text-main: #1F2D3D;
    --text-dark: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --white-color: #FFFFFF;
    --dark-section-bg: #2F6BFF; /* Using primary color for dark section */
}

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for light backgrounds */
    background-color: var(--background-light); /* Default light background */
    padding-bottom: 40px; /* General padding at bottom */
}

/* Ensure first content block has correct top padding, assuming shared.css handles body padding-top */
.page-login__hero-section {
    padding-top: 10px; /* Small top padding for the first section */
    padding-bottom: 40px;
    background-color: var(--background-light);
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    color: var(--text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-login__hero-section {
    display: flex;
    flex-direction: column; /* Default to column, image on top, content below */
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 450px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop, will change to contain for mobile */
}

.page-login__hero-content {
    padding: 0 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual interest */
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    z-index: 1;
}

.page-login__main-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-size: clamp(2em, 4vw, 3em); /* Clamp for h1 */
}

.page-login__hero-description {
    font-size: 1.15em;
    color: var(--text-main);
    margin-bottom: 30px;
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping 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.1em;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
    background: var(--button-gradient);
    color: var(--white-color);
    border: 2px solid transparent;
}

.page-login__btn-primary:hover {
    box-shadow: 0 5px 15px var(--glow-color);
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-login__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: var(--dark-section-bg); /* Dark background */
    color: var(--white-color); /* Light text for dark background */
}

.page-login__form-section .page-login__section-title,
.page-login__form-section .page-login__section-description {
    color: var(--white-color);
}

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-login__input-group {
    margin-bottom: 25px;
}

.page-login__label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

.page-login__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: var(--text-dark);
}

.page-login__input::placeholder {
    color: #999;
}

.page-login__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.page-login__checkbox {
    margin-right: 8px;
}

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

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

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    background: var(--button-gradient);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-button:hover {
    box-shadow: 0 5px 15px var(--glow-color);
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 20px;
    color: var(--text-main);
}

.page-login__register-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.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-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__card-text {
    color: var(--text-main);
    font-size: 1em;
}

.page-login__cta-section {
    text-align: center;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 60px;
}

.page-login__cta-title {
    font-size: 2em;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__cta-description {
    font-size: 1.1em;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto 30px;
}

.page-login__cta-small-text {
    font-size: 0.95em;
    color: var(--text-main);
    margin-top: 20px;
}

.page-login__cta-small-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-login__cta-small-text a:hover {
    text-decoration: underline;
}

/* Security Section */
.page-login__security-section {
    padding: 60px 0;
    background-color: var(--dark-section-bg); /* Primary color for dark background */
    color: var(--white-color); /* Light text */
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description {
    color: var(--white-color);
}

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

.page-login__security-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark bg */
    padding: 30px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.page-login__security-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__security-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__security-title {
    font-size: 1.4em;
    color: var(--white-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__security-text {
    color: var(--white-color);
    font-size: 0.95em;
}

.page-login__security-footer-text {
    margin-top: 40px;
    font-size: 1em;
    text-align: center;
    color: var(--white-color);
}

.page-login__security-footer-text a {
    color: var(--secondary-color); /* Use secondary color for links on dark background */
    text-decoration: none;
    font-weight: bold;
}

.page-login__security-footer-text a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

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

.page-login__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    background-color: var(--card-bg);
    list-style: none; /* For details/summary */
    position: relative;
}

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

.page-login__faq-qtext {
    flex-grow: 1;
    text-align: left;
}