/* 背景 */
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #eef2f3, #dfe9f3);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* 卡片 */
.login-card {
    width: 92%;
    max-width: 380px;
    padding: 28px 26px 34px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    box-shadow: 0 15px 38px rgba(0,0,0,0.12);
    animation: fadein .6s ease;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card h2 {
    text-align: center;
    margin: 0 0 22px;
    font-size: 22px;
    color: #222;
}

/* 标签 */
label {
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

/* 输入框修复宽度溢出问题 */
input[type="password"] {
    width: 100%;
    box-sizing: border-box; /* 关键修复 */
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #c3ccd8;
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.25s;
}

input[type="password"]:focus {
    border-color: #4a8df8;
    box-shadow: 0 0 0 3px rgba(90,150,255,0.25);
}

/* 登录按钮 */
button {
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 12px 0;
    background: #4a8df8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background: #3b7ded;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66,133,244,0.35);
}

button:active {
    transform: scale(0.97);
}

/* 错误提示 */
.error {
    color: #c0392b;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

/* 手机端优化 */
@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px 30px;
        border-radius: 14px;
    }
}
