/* style/login.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Main */
    --secondary-color: #22C768; /* Aux */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --header-offset: 0px; /* This will be set by shared.css, just for local testing/default */
}

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

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--deep-green); /* Fallback background */
}

.page-login__video-container {
    width: 100%;
    max-width: 100%; /* Ensure it spans full width */
    position: relative;
    overflow: hidden;
    /* Using width/height attributes on video and object-fit cover instead of padding-bottom trick */
    margin-bottom: 20px; /* Space between video and content */
}

.page-login__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Cover the container */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin-top: -100px; /* Pull up over the video a bit for visual effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-login__main-title {
    font-size: clamp(2em, 5vw, 3em); /* Responsive font size for H1 */
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-login__hero-description {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-form-wrapper {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

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

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--deep-green);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-main);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-login__form-input:focus {
    border-color: var(--glow-color);
    outline: none;
}

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

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

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

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

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

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

.page-login__submit-button {
    width: 100%;
    padding: 14px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-login__submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

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

/* Sections General */
.page-login__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* Dark background for this section */
    color: var(--text-main);
}

.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: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--glow-color)); /* Glow effect, not color change */
}

.page-login__benefit-title {
    font-size: 1.4em;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: var(--background-color);
    color: var(--text-main);
}

.page-login__security-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-login__security-image-wrapper {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-login__security-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-login__security-text-block {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-login__security-subtitle {
    font-size: 1.6em;
    color: var(--glow-color);
    margin-bottom: 20px;
    font-weight: 600;
}

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

.page-login__security-list li {
    background: var(--deep-green);
    margin-bottom: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__security-list li::before {
    content: '✓';
    color: var(--gold-color);
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2em;
    line-height: 1;
}

.page-login__security-list li strong {
    color: var(--glow-color);
}

.page-login__security-note {
    font-size: 1em;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--deep-green);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* Dark background for contrast */
    color: var(--text-main);
}

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

.page-login__troubleshoot-card {
    background: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-login__troubleshoot-subtitle {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__troubleshoot-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-login__troubleshoot-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start; /* Align button to start */
}

.page-login__troubleshoot-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

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

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

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

.page-login__faq-item summary {
    list-style: none; /* Remove default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--glow-color);
    transition: background-color 0.3s ease;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

.page-login__faq-item summary:hover {
    background-color: var(--deep-green);
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    text-align: left;
}

.page-login__faq-answer p {
    margin: 0;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: var(--deep-green);
    text-align: center;
    color: var(--text-main);
}

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

.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
    min-width: 200px;
    text-align: center;
}

.page-login__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-login__btn-secondary {
    background: none;
    border: 2px solid var(--glow-color);
    color: var(--glow-color);
    box-shadow: none;
}

.page-login__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--background-color);
    box-shadow: 0 4px 10px rgba(87, 227, 141, 0.4);
}

.page-login__cta-subtext {
    margin-top: 30px;
    font-size: 1em;
    color: var(--text-secondary);
}

.page-login__cta-sublink {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-login {
        font-size: 15px;
    }

    .page-login__container {
        padding: 0 15px;
    }

    .page-login__hero-section {
        padding-bottom: 40px;
    }

    .page-login__hero-content {
        padding: 30px 15px;
        margin-top: -80px;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

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

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-login__submit-button,
    .page-login__cta-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;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__troubleshoot-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 50px 0;
    }

    .page-login__section-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-login__benefits-grid,
    .page-login__troubleshoot-grid {
        grid-template-columns: 1fr;
    }

    .page-login__security-content {
        flex-direction: column;
    }

    .page-login__security-image-wrapper,
    .page-login__security-text-block {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-login__security-list li {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .page-login__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-login__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Images and Videos Responsive */
    .page-login img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-login video,
    .page-login__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__security-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure content doesn't overflow */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-login__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-login__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-login__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}