/* ============================================================
   AIES 科技教育登录页 — Tech-Edu Design
   科技感 · 信息科技教学前沿
   ============================================================ */

/* --- 全局重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.signin {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
               'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  overflow: hidden;
  height: 100vh;
  background: #080c24;
  color: #fff;
  user-select: none;
}

/* --- Canvas 粒子背景 --- */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* --- 背景渐变层（覆盖canvas之上，透出粒子） --- */
.bg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 180, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* --- 网格/电路纹理 --- */
.grid-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* --- 主容器（两个区域） --- */
.login-container {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.login-inner {
  display: flex;
  width: 1100px;
  max-width: 92vw;
  height: 600px;
  max-height: 90vh;
  align-items: center;
  gap: 40px;
}

/* ============================================
   左侧 — 品牌展示区
   ============================================ */
.brand-section {
  flex: 1.25;
  padding: 20px 10px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.brand-logo img {
  height: 52px;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.brand-logo .logo-text {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.brand-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.brand-title .highlight {
  display: inline-block;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.brand-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  border-radius: 2px;
  opacity: 0.6;
}

.brand-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 420px;
}

/* --- 学习路径指示器 --- */
.learning-path {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.path-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}

.path-step .step-icon {
  font-size: 14px;
  opacity: 0.5;
}

.path-step.active {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
  color: rgba(255,255,255,0.8);
}

.path-step.active .step-icon { opacity: 1; color: #00d4ff; }

.path-arrow {
  color: rgba(255,255,255,0.15);
  font-size: 12px;
  flex-shrink: 0;
}

/* ============================================
   右侧 — 登录卡片
   ============================================ */
.login-card {
  flex: 1;
  min-width: 380px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 36px 32px;
  position: relative;
  overflow: hidden;
  animation: cardSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 卡片顶部光晕 */
.login-card::before {
  content: '';
  position: absolute;
  top: -60%; left: -30%;
  width: 160%; height: 120%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.login-card-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.login-card-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.login-card-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   表单控件
   ============================================ */
.login-form { position: relative; z-index: 1; }

.form-group {
  position: relative;
  margin-bottom: 18px;
}

.form-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  font-size: 15px;
  transition: color 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.form-group .form-control {
  display: block;
  width: 100%;
  height: 48px;
  padding: 10px 14px 10px 42px;
  font-size: 14px;
  color: #e2e8f0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
}

.form-group .form-control::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-group .form-control:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08), 0 0 20px rgba(0, 212, 255, 0.05);
}

.form-group .form-control:focus ~ .input-icon {
  color: #00d4ff;
}

/* 验证码行 */
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-row .form-control {
  flex: 1;
  padding-left: 14px;
}

.captcha-img-wrap {
  flex-shrink: 0;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s;
  cursor: pointer;
}

.captcha-img-wrap:hover {
  border-color: rgba(0, 212, 255, 0.4);
}

.captcha-img-wrap img {
  height: 100%;
  display: block;
  cursor: pointer;
}

/* 记住我 */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.remember-row .checkbox-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
}

.remember-row .checkbox-custom input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00d4ff;
  cursor: pointer;
  opacity: 1;
  position: static;
  margin: 0;
}

.remember-row .checkbox-custom label {
  cursor: pointer;
  font-weight: 400;
  margin: 0;
}

/* --- 登录按钮 --- */
.btn-login {
  display: block;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00b4d8 0%, #7c3aed 100%);
  transition: all 0.3s ease;
  letter-spacing: 2px;
  font-family: inherit;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 300%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 180, 216, 0.3); }
.btn-login:hover::before { left: 100%; }
.btn-login:active { transform: translateY(0); }

/* --- 验证错误 --- */
label.error {
  color: #f87171 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  margin-top: 4px;
  display: block;
  position: inherit !important;
  padding-left: 4px;
}

/* --- 页脚 --- */
.login-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}

/* ============================================
   layer 弹窗统一样式
   ============================================ */
body .layer-ext-moon-msg[type="dialog"] { min-width: 100px !important; }
body .layer-ext-moon-msg {
  background-color: rgba(0,0,0,0.75) !important;
  backdrop-filter: blur(12px);
  color: #e2e8f0 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
}
body .layer-ext-moon-msg .layui-layer-content { padding: 14px 24px; font-size: 14px; }

/* ============================================
   响应式
   ============================================ */
@media screen and (max-width: 900px) {
  .login-inner { flex-direction: column; height: auto; gap: 24px; padding: 40px 0; }
  .brand-section { flex: none; text-align: center; align-items: center; padding: 0; }
  .brand-title { font-size: 32px; }
  .brand-subtitle { max-width: 100%; }
  .learning-path { justify-content: center; }
  .login-card { min-width: 0; width: 100%; max-width: 420px; padding: 32px 28px; }
}

@media screen and (max-width: 480px) {
  .login-inner { padding: 20px 0; gap: 16px; }
  .brand-section { padding: 0; }
  .brand-logo img { height: 40px; }
  .brand-logo .logo-text { font-size: 22px; }
  .brand-title { font-size: 26px; }
  .brand-subtitle { font-size: 14px; margin-bottom: 24px; }
  .login-card { padding: 24px 20px; border-radius: 16px; }
  .login-card-header h3 { font-size: 18px; }
  .login-card-header p { font-size: 12px; }
  .form-group .form-control { height: 44px; font-size: 13px; }
  .btn-login { height: 44px; font-size: 14px; }
  .path-step { font-size: 10px; padding: 4px 12px; }
}
