:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-card: rgba(255, 255, 255, 0.1); /* Light transparent background for cards on dark body */
    --border-color: rgba(255, 255, 255, 0.2);
}

.page-login {
    color: var(--text-light); /* Text color for the main content on dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Fixed header spacing */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    padding-bottom: 60px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.8)), url('[GALLERY:login_hero_bg:1920x1080:xin88,login,hero,background,abstract_gold_red]');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px; /* Ensure hero section has a decent height */
}

.page-login__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-light);
    opacity: 0.9;
}

.page-login__login-form-container {
    background: rgba(0, 0, 0, 0.7); /* Darker background for form */
    padding: 30px;
    border-radius: 10px;
    max-width: 450px;
    margin: 40px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-login__form-title {
    font-size: 1.8em;
    color: var(--primary-color);
    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-light);
    font-weight: 500;
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.page-login__forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

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

.page-login__submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #000000; /* Black text on gold button for contrast */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    max-width: 100%; /* Important for mobile responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-button:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-login__submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.2);
}

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

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

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

.page-login__form-illustration {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

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

.page-login__why-choose-section {
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker background for this section */
    padding: 60px 0;
}

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