/* 防止页面出现滚动条 */
body {
    overflow-x: hidden;
    height: 100vh;
}

.login-bg::before, .login-bg::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}
.login-bg::before {
    width: 480px; height: 480px; left: -120px; bottom: -120px;
    background: rgba(79, 133, 246, 0.25);
}
.login-bg::after {
    width: 520px; height: 520px; right: -140px; top: -140px;
    background: rgba(152, 189, 255, 0.3);
}

.login-container {
    height: calc(100vh - 80px); /* 减去头部导航的高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden; /* 防止出现滚动条 */
}

.login-card {
    width: 450px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(31, 41, 55, 0.12);
    padding: 28px 28px 20px;
}

.brand {
    display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 8px;
}
.brand-icon { background: #1890ff; color: #fff; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(24,144,255,.35); }
.brand-name { font-size: 20px; font-weight: 800; color: #1890ff; }

.title { text-align: center; font-size: 20px; font-weight: 700; color: #111827; margin: 6px 0 4px; }
.subtitle { text-align: center; font-size: 12px; color: #6b7280; margin: 0 0 16px; }

.login-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.tab { border: 0; background: #f3f4f6; color: #374151; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.tab.active { background: #1890ff; color: #fff; box-shadow: 0 6px 16px rgba(24,144,255,.35); }

.form-pane { margin-top: 6px; }
.redeem-row { display: flex; gap: 10px; margin: 10px 0; }
.form-pane input[type="text"],
.form-pane input[type="password"] {
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    width: 100%;
    background: #fafafa;
    transition: all .25s ease;
}
.form-pane input[type="text"]:focus,
.form-pane input[type="password"]:focus {
    outline: none;
    border-color: #1890ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24,144,255,.15);
}

.qrcode { display: flex; justify-content: center; margin: 10px 0; }
.qrcode img { width: 120px; height: 40px; border-radius: 8px; border: 6px solid #f8fafc; box-shadow: 0 6px 16px rgba(0,0,0,.06); object-fit: cover; }

.btn-primary {
    background: #1890ff;
    color: #fff;
    border: 0;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(24,144,255,.25);
    transition: all .2s ease;
}
.btn-primary:hover { background: #40a9ff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(64,169,255,.28); }
.btn-primary:active { transform: translateY(0); }

.btn-link {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}
.btn-link:hover { background: #e6f7ff; border-color: #91d5ff; color: #1890ff; }

.product i { color: #1890ff; }

@media (max-width: 420px) {
    .login-container {
        height: calc(100vh - 60px); /* 小屏幕下头部导航可能更矮 */
        padding: 16px;
    }
    .login-card { 
        width: 100%; 
        padding: 20px; 
        max-height: calc(100vh - 120px); /* 确保卡片不会超出视口 */
        overflow-y: auto; /* 如果内容过多，允许卡片内部滚动 */
    }
    .redeem-row { flex-direction: column; gap: 8px; }
}