.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.login-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 2rem;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(174,58,30,0.05)" stroke-width="1" width="100" height="100"/></svg>');
    background-size: 30px;
}

.login-card {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(174, 58, 30, 0.2);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(174, 58, 30, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h2 {
    color: #ae3a1e;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.login-header p {
    color: #7a6f6b;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #ae3a1e;
    font-size: 1.1rem;
}

/* .input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ae3a1e;
    font-size: 1.2rem;
} */

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e0d6d2;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #5a4e48;
    background-color: #fcf9f7;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ae3a1e;
    box-shadow: 0 0 0 3px rgba(174, 58, 30, 0.2);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

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

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: #ae3a1e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #8a2b16;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #ae3a1e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.login-btn:hover {
    background-color: #8a2b16;
    transform: translateY(-2px);
}

.register-link {
    text-align: center;
    color: #7a6f6b;
    font-size: 1.05rem;
}

.register-link a {
    color: #ae3a1e;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.register-link a:hover {
    text-decoration: underline;
    color: #8a2b16;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-control {
        padding: 12px 12px 12px 40px;
        font-size: 1rem;
    }
}