/* ============================================================
   login.css  —  QisClinic 登录页样式
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:     #2563eb;
  --blueBg:   #eff6ff;
  --blueDark: #1e3a8a;
  --green:    #16a34a;
  --gray1:    #12120f;
  --gray2:    #2c2c28;
  --gray3:    #6e6e68;
  --gray4:    #9e9e98;
  --gray6:    #f1f0ec;
  --red:      #dc2626;
  --line:     #e5e5e0;
  --radius:   10px;
  --radius-sm:8px;
  --fs:       14px;
  --fxs:      13px;
  --fmicro:   10px;
  --fm:       15px;
  --fl:       16px;
  --fxl:      17px;
  --fw-bold:  600;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── 背景 ── */
body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    #1e3a8a 0%,
    #2563eb 40%,
    #3b82f6 70%,
    #60a5fa 100%);
  overflow: hidden;
}

/* 装饰圆圈 */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  opacity: .15;
  pointer-events: none;
}
body::before {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, #93c5fd, transparent 70%);
}
body::after {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, #bfdbfe, transparent 70%);
}

/* ── 卡片 ── */
.login-card {
  position: relative;
  z-index: 1;
  width: min(400px, calc(100vw - 32px));
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(30,58,138,.35), 0 4px 16px rgba(0,0,0,.1);
  padding: 36px 32px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Logo 区 ── */
.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.login-logo-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.login-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray1);
  letter-spacing: -.3px;
}
.login-subtitle {
  font-size: var(--fxs);
  color: var(--gray3);
  margin-bottom: 28px;
  padding-left: 50px;
}

/* ── 语言切换 ── */
.login-lang {
  position: absolute;
  top: 20px; right: 20px;
  display: flex;
  gap: 2px;
  background: var(--gray6);
  border-radius: 8px;
  padding: 2px;
}
.login-lang button {
  padding: 3px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  font-size: var(--fmicro);
  font-weight: var(--fw-bold);
  color: var(--gray3);
  cursor: pointer;
  transition: all .15s;
}
.login-lang button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* ── 表单 ── */
.login-field {
  margin-bottom: 14px;
}
.login-field label {
  display: block;
  font-size: var(--fxs);
  font-weight: var(--fw-bold);
  color: var(--gray2);
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs);
  color: var(--gray1);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.login-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.login-field input::placeholder {
  color: var(--gray4);
}

/* ── 错误提示 ── */
.login-error {
  display: none;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: var(--fxs);
  margin-bottom: 14px;
}

/* ── 提交按钮 ── */
.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--fs);
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  margin-top: 4px;
}
.login-btn:hover  { opacity: .92; }
.login-btn:active { transform: scale(.98); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── 底部提示 ── */
.login-hint {
  text-align: center;
  font-size: var(--fmicro);
  color: var(--gray4);
  margin-top: 14px;
}

/* ── 响应式 ── */
@media (max-height: 600px) {
  .login-card { padding: 24px 24px 20px; }
  .login-subtitle { margin-bottom: 18px; }
}
