* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f0f4ff; min-height: 100vh; }

.login-bg {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a3a6b 0%, #2563eb 60%, #60a5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    width: 380px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 28px;
    text-align: center;
}

.input-group {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid #e8eaf0;
    overflow: hidden;
}
.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
    color: #333;
}
.input-group input::placeholder { color: #aaa; }

/* 验证码行：输入框 + 图片并排 */
.captcha-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.captcha-input {
    flex: 1;
    margin-bottom: 0;
}
.captcha-img {
    width: 120px;
    height: 48px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #e8eaf0;
    display: block;
    object-fit: fill;
}

.login-btn {
    width: 100%;
    padding: 13px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
}
.login-btn:hover { background: #1d4ed8; }
.login-btn:disabled { background: #93c5fd; cursor: not-allowed; }

.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.85);
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.toast.show { opacity: 1; }
