/* dazi-auth.css — 登录/注册页 打字系统主题 (user/login.html / user/register.html) */
/* 布局: 左侧品牌介绍面板(科技感+卡通) + 右侧表单卡片, 样式收敛在 .dazi-auth 下 */

.dazi-auth-container.container { max-width: 1000px; }
.dazi-auth {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  align-items: stretch;
  margin: 36px auto 44px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ==================== 左侧介绍面板 ==================== */
.dazi-auth-intro {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 40px 34px 30px;
  color: #fff;
  background:
    radial-gradient(900px 380px at -10% -20%, rgba(79, 195, 247, .22), transparent 55%),
    radial-gradient(700px 400px at 110% 115%, rgba(124, 77, 255, .32), transparent 60%),
    linear-gradient(150deg, #171d3d 0%, #221a4e 55%, #1b1440 100%);
  box-shadow: 0 18px 44px rgba(23, 29, 61, .22);
}

/* 科技网格底纹 */
.dazi-auth-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .09) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .3) 65%, transparent);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .3) 65%, transparent);
  pointer-events: none;
}

/* 缓慢下移的扫描光带 */
.dazi-auth-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -90px;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(79, 195, 247, .12), transparent);
  animation: dh-scan 6s linear infinite;
  pointer-events: none;
}
@keyframes dh-scan { to { transform: translateY(640px); } }

/* 漂浮键帽(卡通凸起按键) */
.dazi-auth-intro .keycap {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font: 700 16px Consolas, Monaco, monospace;
  color: #cfe6ff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid rgba(140, 180, 255, .38);
  box-shadow: 0 6px 0 rgba(9, 13, 33, .55), 0 12px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
  animation: dh-float 5.2s ease-in-out infinite;
  user-select: none;
}
@keyframes dh-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.dazi-auth-intro .intro-body { position: relative; z-index: 2; max-width: 92%; }
.dazi-auth-intro .intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #aee0ff;
  background: rgba(79, 195, 247, .12);
  border: 1px solid rgba(120, 190, 255, .35);
  border-radius: 999px;
  padding: 6px 16px;
}
.dazi-auth-intro .intro-title {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(100deg, #ffffff 30%, #8fd4ff 75%, #c9a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dazi-auth-intro .intro-sub {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(214, 226, 255, .82);
}

.dazi-auth-intro .intro-features {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.dazi-auth-intro .intro-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #e6eeff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(140, 180, 255, .18);
  border-radius: 10px;
  padding: 8px 12px;
}
.dazi-auth-intro .intro-features .fi {
  flex: 0 0 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: rgba(255, 255, 255, .1);
  border-radius: 8px;
}

.dazi-auth-intro .intro-stats {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.dazi-auth-intro .intro-stats .stat {
  flex: 1;
  text-align: center;
  background: rgba(10, 16, 40, .45);
  border: 1px solid rgba(120, 180, 255, .2);
  border-radius: 12px;
  padding: 12px 6px 10px;
}
.dazi-auth-intro .intro-stats b {
  display: block;
  font: 800 22px/1.2 Consolas, Monaco, monospace;
  background: linear-gradient(135deg, #7fd4ff, #b69dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dazi-auth-intro .intro-stats span { font-size: 11.5px; color: rgba(200, 216, 255, .66); }

/* 卡通键盘吉祥物 */
.dazi-auth-intro .mascot { position: absolute; right: 28px; bottom: 22px; z-index: 2; text-align: center; }
.dazi-auth-intro .mascot-kb {
  position: relative;
  width: 118px;
  height: 74px;
  border-radius: 14px;
  background: linear-gradient(180deg, #41508c, #2b3263);
  border: 1.5px solid rgba(150, 180, 255, .42);
  box-shadow: 0 8px 0 rgba(9, 13, 33, .5), 0 14px 24px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: dh-bob 4s ease-in-out infinite;
}
/* 键帽颗粒 */
.dazi-auth-intro .mascot-kb::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 42px;
  bottom: 9px;
  border-radius: 6px;
  background-image: radial-gradient(circle, rgba(205, 224, 255, .4) 2.2px, transparent 2.8px);
  background-size: 13px 11px;
}
.dazi-auth-intro .mascot-kb .eye {
  position: absolute;
  top: 12px;
  width: 18px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  animation: dh-blink 4.6s infinite;
}
.dazi-auth-intro .mascot-kb .eye.l { left: 26px; }
.dazi-auth-intro .mascot-kb .eye.r { right: 26px; }
.dazi-auth-intro .mascot-kb .eye::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20264d;
  animation: dh-look 3.6s ease-in-out infinite alternate;
}
@keyframes dh-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes dh-blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.08); }
}
@keyframes dh-look { to { transform: translateX(4px); } }

.dazi-auth-intro .mascot-bubble {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #243b6b;
  background: linear-gradient(180deg, #f4f9ff, #dcebff);
  border: 1px solid rgba(120, 180, 255, .5);
  border-radius: 12px;
  padding: 7px 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  animation: dh-bob 4s ease-in-out infinite;
}
.dazi-auth-intro .mascot-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #dcebff;
  border-right: 1px solid rgba(120, 180, 255, .5);
  border-bottom: 1px solid rgba(120, 180, 255, .5);
  transform: rotate(45deg);
}

/* ==================== 右侧表单卡片 ==================== */
/* 覆盖 frontend.css 的 .login-section 定宽居中, 由外层网格控制 */
.dazi-auth .login-section {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid #e6ebf6;
  box-shadow: 0 18px 44px rgba(23, 29, 61, .10);
  overflow: hidden;
  align-self: center;
}
.dazi-auth .logon-tab {
  margin: 0;
  display: flex;
}
.dazi-auth .logon-tab > a {
  float: none;
  width: 50%;
  padding: 17px;
  font-size: 15px;
  font-weight: 700;
  color: #8a94a8;
  background: #f4f6fb;
  border-bottom: 2px solid #e6ebf6;
}
.dazi-auth .logon-tab > a.active {
  color: #3b6fe0;
  background: #fff;
  border-bottom: 2px solid #3b6fe0;
}
.dazi-auth .login-main { padding: 30px 34px 26px; }

.dazi-auth .control-label { font-weight: 600; color: #3c4658; }
.dazi-auth .form-control {
  height: 46px;
  border-radius: 10px;
  border: 1.5px solid #e3e8f2;
  box-shadow: none;
  padding: 10px 14px;
  font-size: 14.5px;
  color: #333;
  transition: border-color .15s, box-shadow .15s;
}
.dazi-auth .form-control:focus {
  border-color: #4aa9ff;
  box-shadow: 0 0 0 4px rgba(74, 169, 255, .14);
}
.dazi-auth .btn-forgot { color: #3b6fe0; }

.dazi-auth .btn.btn-primary {
  background: linear-gradient(135deg, #4d8dff, #3bc9db);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 6px;
  text-indent: 6px;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(61, 148, 255, .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.dazi-auth .btn.btn-primary:hover,
.dazi-auth .btn.btn-primary:focus {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(61, 148, 255, .42);
}
.dazi-auth .btn.btn-default.no-border {
  background: #f2f5fb;
  color: #3b6fe0;
  border: 1.5px dashed #c9d8f5;
  border-radius: 10px;
  font-weight: 600;
}
.dazi-auth .btn.btn-default.no-border:hover { background: #e9f0fc; }

/* ==================== 响应式 ==================== */
@media (max-width: 860px) {
  .dazi-auth { grid-template-columns: 1fr; gap: 16px; margin: 18px auto 30px; }
  .dazi-auth-intro { padding: 26px 22px 24px; }
  .dazi-auth-intro .intro-title { font-size: 24px; }
  .dazi-auth-intro .intro-features { grid-template-columns: 1fr 1fr; }
  .dazi-auth-intro .mascot { position: static; margin-top: 18px; }
}
@media (max-width: 520px) {
  .dazi-auth-intro .keycap { display: none; }
  .dazi-auth-intro .intro-features li { font-size: 12.5px; padding: 7px 9px; }
  .dazi-auth-intro .intro-features .fi { flex-basis: 26px; height: 26px; }
  .dazi-auth .login-main { padding: 24px 20px 20px; }
  .dazi-auth .form-group { margin-bottom: 14px; }
}
