/* ============================================================================
   登录框
   ============================================================================ */
.auth-gate {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: #0f1e28;
  padding: 20px; box-sizing: border-box;
}
.auth-gate.show { display: flex; }

.ag-box {
  width: 100%; max-width: 360px;
  background: #fff; border-radius: 18px;
  padding: 30px 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.ag-brand { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ag-brand span {
  font-size: 11px; letter-spacing: .14em; color: var(--orange, #df7040);
  border: 1px solid currentColor; border-radius: 5px; padding: 2px 6px;
}
.ag-brand b { font-size: 17px; color: var(--ink, #123343); }
.ag-tip { font-size: 12px; color: var(--soft, #70848a); line-height: 1.7; margin-bottom: 18px; }

.ag-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; border: 1px solid var(--line, #dfe7e5); border-radius: 11px;
  font: inherit; font-size: 14px; letter-spacing: .1em; color: var(--ink, #123343);
}
.ag-input:focus { outline: 2px solid rgba(223, 112, 64, .3); border-color: var(--orange, #df7040); }

.ag-btn {
  width: 100%; margin-top: 12px; padding: 12px;
  border: none; border-radius: 11px; cursor: pointer;
  background: var(--orange, #df7040); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700;
}
.ag-btn:hover { filter: brightness(1.06); }
.ag-btn:disabled { opacity: .6; cursor: default; }

.ag-msg { min-height: 18px; margin-top: 10px; font-size: 12px; color: var(--soft, #70848a); }
.ag-msg.bad { color: #c0503a; }

.ag-foot { margin-top: 16px; font-size: 11px; color: #a8b4b8; line-height: 1.7; }
.ag-foot code { background: #f4f7f6; border-radius: 4px; padding: 1px 5px; font-size: 10.5px; }

/* 侧边栏底部的退出按钮 */
.ag-logout {
  width: 100%; margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  background: transparent; color: inherit; opacity: .72;
  font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.ag-logout i { font-style: normal; font-size: 13px; }
.ag-logout:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
