:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000000; /* Black */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f4f4f4;
    --background-dark: #222222; /* A slightly softer black for contrast */
    --border-color: #e0e0e0;
}

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

/* 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: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gold to Black gradient */
    color: var(--text-light); /* White text on dark gradient */
    overflow: hidden; /* Ensure no overflow from images */
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-login__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

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

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

.page-login__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for better contrast on gradient */
}

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white for form */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    margin: 30px auto 0;
    text-align: left;
    color: var(--text-dark); /* Dark text inside the form */
}

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

.page-login__form-group {
    display: flex;
    flex-direction: column;
}

.page-login__form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.page-login__form-input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.page-login__forgot-password,
.page-login__register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't add to total width */
    max-width: 100%; /* For responsive buttons */
    width: 100%; /* For responsive buttons */
}

.page-login__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-login__btn-primary:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-login__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary:hover {
    background: #111111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: var(--text-dark);
}

/* General Section Styling */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--secondary-color); /* Dark title for light sections */
}

.page-login__dark-bg .page-login__section-title {
    color: var(--primary-color); /* Gold title for dark sections */
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555555; /* Slightly lighter dark text */
}

.page-login__dark-bg .page-login__section-description {
    color: #cccccc; /* Lighter text for dark sections */
}

/* Card Styling */
.page-login__card {
    background: var(--text-light); /* White background for cards */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark); /* Dark text on white card */
}

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

.page-login__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%; /* Ensure image fills card width */
    min-height: 200px; /* Minimum image height for cards */
}

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

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

.page-login__benefit-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--primary-color); /* Gold title for benefits */
    font-weight: 600;
}

.page-login__benefit-text {
    font-size: 1em;
    color: #555555;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    background-color: var(--background-dark); /* Dark background for this section */
    color: var(--text-light);
}

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

.page-login__trouble-item {
    background: #333333; /* Darker background for trouble items */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-login__trouble-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--primary-color); /* Gold title for trouble items */
    font-weight: 600;
}

.page-login__trouble-text {
    font-size: 1em;
    color: #cccccc;
}

/* Security Section */
.page-login__security-section {
    background-color: var(--background-light);
}

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

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

.page-login__feature-text {
    font-size: 1em;
    color: #555555;
}

.page-login__cta-area {
    text-align: center;
    margin-top: 40px;
}

.page-login__cta-text {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* Mobile Section */
.page-login__mobile-section {
    background-color: var(--background-light);
}

.page-login__mobile-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-login__mobile-content {
    flex: 1;
}

.page-login__mobile-image {
    flex: 1;
    text-align: center;
}

.page-login__mobile-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Minimum image width for content images */
    min-height: 200px; /* Minimum image height for content images */
}

.page-login__mobile-features-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-login__mobile-features-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #444444;
}

.page-login__mobile-features-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.page-login__list-highlight {
    color: var(--secondary-color);
}

.page-login__mobile-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__mobile-cta-buttons .page-login__cta-button {
    flex: 1;
    min-width: 200px; /* Ensure buttons are not too small */
}


/* Promotions Section */
.page-login__promotions-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

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

.page-login__promo-card {
    background: #333333; /* Darker background for promo cards */
    color: var(--text-light);
}

.page-login__promo-card img {
    min-height: 200px;
}}