* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: radial-gradient(circle at 50% 0%, #ecfdf5 0%, #f5f7fa 60%);
  color: #111827; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-wrap { width: 100%; max-width: 400px; }
.login-card {
  background: #ffffff; border: 1px solid #e5e7eb;
  border-radius: 16px; padding: 40px 32px 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.login-logo {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #ffffff; box-shadow: 0 8px 20px rgba(16,185,129,.3);
}
.login-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.login-sub { text-align: center; color: #6b7280; font-size: 13px; margin-bottom: 28px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12.5px; color: #6b7280; font-weight: 500; }
.field input {
  background: #ffffff; border: 1px solid #d1d5db; border-radius: 9px;
  color: #111827; font-size: 14px; padding: 11px 14px;
  outline: none; font-family: inherit; transition: border-color .18s, box-shadow .18s;
}
.field input:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.field input::placeholder { color: #9ca3af; }
.login-error { color: #dc2626; font-size: 12.5px; min-height: 18px; text-align: center; }
.btn-login {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff; border: none; border-radius: 10px; padding: 13px;
  font-size: 14.5px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  margin-top: 4px; box-shadow: 0 4px 12px rgba(16,185,129,.35);
}
.btn-login:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(16,185,129,.4); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }
.login-foot {
  text-align: center; color: #9ca3af; font-size: 12px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid #f3f4f6;
}

/* 注册相关 */
.btn-register {
  background: transparent; color: #10b981; border: 1px solid #10b981;
  border-radius: 10px; padding: 11px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .18s;
}
.btn-register:hover { background: rgba(16,185,129,.08); }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal[hidden] { display: none !important; }
.modal-box {
  background: #ffffff; border-radius: 12px;
  width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #e5e7eb;
}
.modal-head h3 { font-size: 16px; font-weight: 700; color: #111827; }
.btn-close {
  background: transparent; border: none; font-size: 24px; line-height: 1;
  color: #6b7280; cursor: pointer; padding: 0 6px;
}
.modal-body { padding: 20px; }
.question-text { font-size: 15px; text-align: center; margin-bottom: 18px; color: #111827; }
.question-text b { color: #dc2626; }
.question-actions { display: flex; gap: 12px; }
.btn-yes, .btn-no {
  flex: 1; padding: 13px; font-size: 15px; font-weight: 700;
  border: none; border-radius: 10px; cursor: pointer; font-family: inherit;
  transition: all .18s;
}
.btn-yes { background: #10b981; color: #ffffff; }
.btn-yes:hover { background: #059669; }
.btn-no { background: #e5e7eb; color: #374151; }
.btn-no:hover { background: #d1d5db; }
.question-tip { font-size: 12.5px; color: #dc2626; text-align: center; margin-top: 12px; min-height: 18px; }
.modal-tip { font-size: 12.5px; color: #6b7280; margin-bottom: 16px; text-align: center; }
.modal-body .field { margin-bottom: 14px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 20px; border-top: 1px solid #e5e7eb; background: #f9fafb;
}
.btn-cancel {
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  border: 1px solid #d1d5db; background: transparent; color: #6b7280;
  border-radius: 8px; cursor: pointer; font-family: inherit;
}
.btn-submit {
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  border: none; background: #10b981; color: #ffffff;
  border-radius: 8px; cursor: pointer; font-family: inherit;
}
.btn-submit:hover { background: #059669; }
