/* style/login.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --login-button-bg: #C30808;
    --login-button-text: #FFFF00;
    --dark-bg-text-color: #ffffff;
    --light-bg-text-color: #333333;
}

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

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

.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg-text-color);
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-login__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-login__form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.page-login__form-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: var(--secondary-color);
    font-size: 1em;
}

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

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

.page-login__forgot-password {
    color: #FFD700; /* Gold-like color for visibility */
    text-decoration: none;
}

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

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

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

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

.page-login__submit-button,
.page-login__cta-button {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-login__btn-primary {
    background-color: var(--login-button-bg); /* Custom color #C30808 */
    color: var(--login-button-text); /* Custom color #FFFF00 */
    border: none;
}

.page-login__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

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

.page-login__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.page-login__register-prompt {
    margin-top: 20px;
    color: #ccc;
    font-size: 0.95em;
}

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

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

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

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

/* Dark background sections */
.page-login__dark-bg {
    background-color: var(--primary-color); /* Use brand primary color for dark sections */
    color: var(--dark-bg-text-color);
    padding: 60px 20px;
}

/* Light background sections */
.page-login__light-bg {
    background-color: var(--secondary-color); /* Use brand secondary color (white) for light sections */
    color: var(--light-bg-text-color);
    padding: 60px 20px;
}

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

.page-login__benefit-card,
.page-login__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__benefit-card img,
.page-login__feature-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block; /* Ensure no extra space below image */
}

.page-login__benefit-title,
.page-login__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-login__benefit-text,
.page-login__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-login__cta-buttons--centered {
    justify-content: center;
}

/* Video Section */
.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-login__video-caption {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: var(--light-bg-text-color);
}

/* App Download Section */
.page-login__app-download-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-login__app-text-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-login__app-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    font-size: 1.1em;
    color: var(--light-bg-text-color);
}

.page-login__app-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-login__app-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.page-login__app-feature-highlight {
    color: var(--primary-color);
}

.page-login__download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-login__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-login__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-login__faq-heading {
    font-size: 1.2em;
    margin: 0;
    color: var(--secondary-color);
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}