/* style/login.css */
.page-login {
    background-color: #F5F7FA; /* Background */
    color: #333333; /* Text Main */
    font-family: Arial, sans-serif; /* Roboto气质 - Arial is a common sans-serif */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-login__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as per rules */
    margin-bottom: 40px;
    background-color: #100224; /* Dark background for hero */
    color: #FFFFFF;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Min size */
    min-height: 200px; /* Min size */
}

.page-login__hero-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* clamp for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* Ensure good contrast */
}

.page-login__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #E0E0E0; /* Lighter text for description */
}

/* Form Section */
.page-login__form-section {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-bottom: 40px;
}

.page-login__form-container {
    background-color: #FFFFFF; /* Card BG */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    border: 1px solid #E0E0E0; /* Border */
}

.page-login__form-title {
    font-size: 2rem;
    color: #333333; /* Text Main */
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333; /* Text Main */
}

.page-login__form-input {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 12px 10px;
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 5px;
    font-size: 1rem;
    color: #333333;
    background-color: #FFFFFF;
}

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

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

.page-login__forgot-password {
    color: #E53935; /* Main color for link */
    text-decoration: none;
    font-size: 0.95rem;
}

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

.page-login__submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none; /* For <a> tag */
    transition: background 0.3s ease;
    min-height: 44px; /* Touch target size */
}

.page-login__submit-button:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Invert gradient on hover */
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    color: #333333; /* Text Main */
}

.page-login__register-link {
    color: #E53935; /* Main color for link */
    text-decoration: none;
    font-weight: bold;
}

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

/* Features Section */
.page-login__features-section {
    background-color: #F5F7FA; /* Background */
    padding: 40px 20px;
    text-align: center;
}

.page-login__features-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #333333; /* Text Main */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-login__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-login__feature-card {
    background-color: #FFFFFF; /* Card BG */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #E0E0E0; /* Border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-login__feature-icon {
    width: 200px; /* Enforce min size */
    height: 200px; /* Enforce min size */
    margin-bottom: 15px;
    object-fit: contain; /* Icons might be better with contain */
    display: block;
}

.page-login__feature-card-title {
    font-size: 1.4rem;
    color: #333333; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__feature-card-description {
    font-size: 1rem;
    color: #666666; /* Slightly lighter text */
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-login__hero-section {
        padding-bottom: 20px;
    }
    .page-login__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-login__description {
        font-size: 1rem;
    }
    .page-login__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__hero-image {
        max-width: 100%;
        height: auto; /* Ensure images are responsive */
    }
    .page-login__feature-icon {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Keep min size */
        min-height: 200px; /* Keep min size */
    }
    /* Ensure content area images do not cause overflow */
    .page-login img {
        max-width: 100%;
        height: auto;
    }
    .page-login__form-container {
        padding: 20px;
    }
    .page-login__form-input {
        width: calc(100% - 20px);
    }
    .page-login__features-section {
        padding: 30px 15px;
    }
}

@media (max-width: 549px) {
    .page-login__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-login__form-title {
        font-size: 1.8rem;
    }
    .page-login__features-grid {
        grid-template-columns: 1fr;
    }
    .page-login__feature-icon {
        width: 100%; /* Make them take full width, but respect min size */
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}