/* login1 — 对齐 tmp/src/app/pages/Login.tsx 视觉 */
*, *::before, *::after { box-sizing: border-box; }
.login1-page {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #f9fafb, #eff6ff, #faf5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

.login1-bg-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.login1-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.6;
  animation: login1-pulse 4s ease-in-out infinite;
}
.login1-blob--tr {
  top: 0;
  right: 0;
  width: 384px;
  height: 384px;
  background: linear-gradient(to bottom right, rgba(96, 165, 250, 0.35), rgba(192, 132, 252, 0.35));
  transform: translate(33%, -33%);
}
.login1-blob--bl {
  bottom: 0;
  left: 0;
  width: 384px;
  height: 384px;
  background: linear-gradient(to top right, rgba(34, 211, 238, 0.35), rgba(96, 165, 250, 0.35));
  transform: translate(-33%, 33%);
  animation-delay: 1s;
}
.login1-blob--c {
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  background: linear-gradient(to bottom right, rgba(192, 132, 252, 0.22), rgba(244, 114, 182, 0.22));
  opacity: 0.4;
  transform: translate(-50%, -50%);
  animation: none;
}
@keyframes login1-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.03); }
}
.login1-blob--tr { animation-name: login1-pulse-tr; }
.login1-blob--bl { animation-name: login1-pulse-bl; }
@keyframes login1-pulse-tr {
  0%, 100% { opacity: 0.55; transform: translate(33%, -33%) scale(1); }
  50% { opacity: 0.75; transform: translate(33%, -33%) scale(1.03); }
}
@keyframes login1-pulse-bl {
  0%, 100% { opacity: 0.55; transform: translate(-33%, 33%) scale(1); }
  50% { opacity: 0.75; transform: translate(-33%, 33%) scale(1.03); }
}

.login1-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.login1-wrap {
  position: relative;
  width: 100%;
  max-width: 72rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .login1-wrap { grid-template-columns: 1fr 1fr; }
}

/* 左侧 */
.login1-left { display: none; }
@media (min-width: 768px) {
  .login1-left { display: block; }
}
.login1-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.login1-gradient-text {
  background: linear-gradient(to right, #2563eb, #9333ea, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login1-hero-desc {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.625;
  margin: 0 0 2rem;
}

.login1-cards { display: flex; flex-direction: column; gap: 1rem; }
.login1-fcard {
  position: relative;
}
.login1-fcard-glow {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s;
}
.login1-fcard:hover .login1-fcard-glow { opacity: 1; }
.login1-fcard-glow--blue { background: linear-gradient(to right, #2563eb, #1d4ed8); }
.login1-fcard-glow--purple { background: linear-gradient(to right, #9333ea, #7e22ce); }
.login1-fcard-glow--cyan { background: linear-gradient(to right, #0891b2, #0e7490); }
.login1-fcard-glow--green { background: linear-gradient(to right, #16a34a, #15803d); }

.login1-fcard-inner {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  border: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.login1-fcard:hover .login1-fcard-inner {
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}
.login1-fcard--purple:hover .login1-fcard-inner { border-color: rgba(216, 180, 254, 0.5); }
.login1-fcard--cyan:hover .login1-fcard-inner { border-color: rgba(165, 243, 252, 0.5); }
.login1-fcard--green:hover .login1-fcard-inner { border-color: rgba(187, 247, 208, 0.5); }

.login1-ficon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.login1-fcard:hover .login1-ficon { transform: scale(1.1) rotate(3deg); }
.login1-ficon--blue { background: linear-gradient(to bottom right, #3b82f6, #2563eb); box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35); }
.login1-ficon--purple { background: linear-gradient(to bottom right, #a855f7, #9333ea); box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35); }
.login1-ficon--cyan { background: linear-gradient(to bottom right, #06b6d4, #0891b2); box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35); }
.login1-ficon--green { background: linear-gradient(to bottom right, #22c55e, #16a34a); box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35); }

.login1-ficon svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.login1-ftitle { font-weight: 700; color: #111827; margin: 0 0 0.375rem; font-size: 1rem; }
.login1-fdesc { font-size: 0.875rem; color: #4b5563; line-height: 1.625; margin: 0; }

/* 右侧表单 */
.login1-right { position: relative; }
.login1-form-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.15));
  border-radius: 1.5rem;
  filter: blur(24px);
}
.login1-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(229, 231, 235, 0.5);
  padding: 2.5rem;
}

.login1-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .login1-mobile-brand { display: none; }
}
.login1-mobile-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, #2563eb, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.login1-mobile-logo svg { width: 1.5rem; height: 1.5rem; color: #fff; stroke: #fff; }
.login1-mobile-title { font-weight: 700; font-size: 1.25rem; color: #111827; }

.login1-welcome { margin-bottom: 2.5rem; }
.login1-welcome h2 { font-size: 1.875rem; font-weight: 700; color: #111827; margin: 0 0 0.75rem; }
.login1-welcome p { font-size: 1rem; color: #4b5563; margin: 0; }

.login1-field { margin-bottom: 1.5rem; }
.login1-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}
.login1-input-wrap {
  position: relative;
}
.login1-input-wrap .login1-in-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  pointer-events: none;
  transition: color 0.2s;
}
.login1-input-wrap:focus-within .login1-in-icon { color: #2563eb; }
.login1-input-wrap .login1-in-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; }

.login1-input-wrap .layui-input {
  height: 48px;
  line-height: 48px;
  padding-left: 3rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid #d1d5db !important;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.5) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login1-input-wrap .layui-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.login1-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.login1-remember {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.login1-remember input { width: 1rem; height: 1rem; accent-color: #2563eb; cursor: pointer; }
.login1-remember span { margin-left: 0.5rem; font-size: 0.875rem; color: #4b5563; }
.login1-remember:hover span { color: #111827; }
.login1-forgot {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.login1-forgot:hover { color: #1d4ed8; text-decoration: underline; }

.login1-submit.layui-btn {
  width: 100%;
  height: 48px !important;
  line-height: 48px !important;
  border: none !important;
  border-radius: 0.75rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  background: linear-gradient(to right, #2563eb, #1d4ed8, #7c3aed) !important;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.35) !important;
  transition: box-shadow 0.3s, filter 0.3s;
}
.login1-submit.layui-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 20px -5px rgba(59, 130, 246, 0.45) !important;
}

.login1-register-hint {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #4b5563;
}
.login1-register-hint a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.login1-register-hint a:hover { color: #1d4ed8; text-decoration: underline; }

.login1-legal {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.625;
}
.login1-legal a { color: #2563eb; font-weight: 500; margin: 0 2px; }
.login1-legal a:hover { text-decoration: underline; }

/* 验证码 — 与 login_old 逻辑兼容 */
.captcha-container.login1-captcha { display: none; margin-bottom: 1.25rem; }
.captcha-container.login1-captcha.show { display: block; }
.login1-captcha-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.login1-captcha-row .login1-input-wrap { flex: 1; }
.login1-captcha-row .login1-input-wrap .layui-input { padding-left: 3rem !important; }
.login1-captcha-img {
  height: 48px;
  border-radius: 0.75rem;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  object-fit: cover;
  flex-shrink: 0;
}

/* 扩展入口（原 login_old feature-buttons） */
.login1-extra {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.login1-extra .login1-extra-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.login1-extra a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  color: #2563eb;
  background: rgba(239, 246, 255, 0.8);
  border: 1px solid rgba(191, 219, 254, 0.6);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
}
.login1-extra a:hover { background: #dbeafe; }

/* 注册页：表单较长时可滚动 */
.login1-panel--scroll {
  max-height: min(92vh, 920px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 部门 dtree / layui 下拉 */
.login1-dept-wrap {
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 8px;
  min-height: 48px;
}
.login1-field .layui-form-select .layui-input {
  height: 48px !important;
  line-height: 48px !important;
  border-radius: 0.75rem !important;
  border: 1px solid #d1d5db !important;
}
.login1-field .layui-form-select {
  margin: 0;
}

/* 部门 dtree：避免下拉被父级裁剪（与公开接口配合） */
.login1-field--dept {
  position: relative;
  z-index: 5;
  overflow: visible;
}
.login1-select-wrap .layui-form-select .layui-input {
  padding-left: 3rem !important;
}
