/**
 * 金川 VI · 表单控件（输入 / 下拉 / 多行 / 单选 / 多选）
 * 任意页面在容器上加 class="vi-forms"，并定义品牌色 :root 变量即可复用。
 */
:root{
  --ctrl-bg:var(--panel2,#f7faf8);
  --ctrl-bg-focus:#fff;
  --ctrl-border:var(--line,#d7e0d9);
  --ctrl-border-hover:#b5c4bb;
  --ctrl-radius:8px;
  --ctrl-pad-y:8px;
  --ctrl-pad-x:11px;
  --ctrl-font-size:13px;
  --ctrl-min-h:36px;
  --ctrl-focus-border:var(--brand,#12804A);
  --ctrl-focus-ring:0 0 0 3px rgba(18,128,74,.16);
  --ctrl-disabled-opacity:.6;
  --ctrl-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6b62' d='M3 4.5 6 8l3-3.5'/%3E%3C/svg%3E");
}

.vi-forms input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]),
.vi-forms select,
.vi-forms textarea{
  box-sizing:border-box;
  min-height:var(--ctrl-min-h);
  padding:var(--ctrl-pad-y) var(--ctrl-pad-x);
  font-size:var(--ctrl-font-size);
  line-height:1.35;
  font-family:var(--sans,"Noto Sans SC","Microsoft YaHei",sans-serif);
  color:var(--ink,#14201a);
  background:var(--ctrl-bg);
  border:1px solid var(--ctrl-border);
  border-radius:var(--ctrl-radius);
  outline:none;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.vi-forms select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:calc(var(--ctrl-pad-x) + 22px);
  background-image:var(--ctrl-select-chevron);
  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:12px;
  cursor:pointer;
}
.vi-forms select[multiple],
.vi-forms select[size]:not([size="1"]){
  min-height:88px;
  padding-right:var(--ctrl-pad-x);
  background-image:none;
}
.vi-forms textarea{
  min-height:72px;
  resize:vertical;
  padding-top:10px;
  padding-bottom:10px;
}
.vi-forms input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]):hover,
.vi-forms select:hover,
.vi-forms textarea:hover{border-color:var(--ctrl-border-hover)}
.vi-forms input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]):focus,
.vi-forms select:focus,
.vi-forms textarea:focus{
  border-color:var(--ctrl-focus-border);
  background:var(--ctrl-bg-focus);
  box-shadow:var(--ctrl-focus-ring);
}
.vi-forms input:disabled,
.vi-forms select:disabled,
.vi-forms textarea:disabled{
  opacity:var(--ctrl-disabled-opacity);
  cursor:not-allowed;
  box-shadow:none;
}
.vi-forms input[type=checkbox],
.vi-forms input[type=radio]{
  width:1rem;
  height:1rem;
  min-width:1rem;
  min-height:1rem;
  margin:0;
  padding:0;
  flex:none;
  accent-color:var(--brand,#12804A);
  cursor:pointer;
  vertical-align:middle;
}
.vi-forms label:has(>input[type=checkbox]),
.vi-forms label:has(>input[type=radio]){
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:var(--ctrl-font-size);
  color:var(--ink-dim,#5a6b62);
  cursor:pointer;
  user-select:none;
}

/* 登录区：同一 VI，略大触控尺寸 */
.auth-panel.vi-forms{
  --ctrl-font-size:15px;
  --ctrl-min-h:44px;
  --ctrl-pad-y:10px;
  --ctrl-pad-x:14px;
}
