/* ===== 登录页面样式 ===== */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.15);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid #f0f3f7;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-card h1 i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background: text;
}

.login-card .sub {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.input-group {
    margin-bottom: 1.3rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}
