/* 登录页样式 —— 智慧教育平台（高端玻璃拟态 · 主色 #a03762） */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #faf6f8 0%, #f7e9f0 45%, #f4e3ec 100%);
  overflow: hidden;
  position: relative;
}
.login-wrap::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(199, 85, 136, 0.18), transparent 70%);
  border-radius: 50%;
}
.login-wrap::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(160, 55, 98, 0.14), transparent 70%);
  border-radius: 50%;
}

/* 左侧品牌展示区 */
.login-brand {
  flex: 1.1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 56px 48px;
  color: #fff;
  background-size: cover;
  background-position: center;
  transition: background-image 0.6s ease;
}
.login-brand-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(160, 55, 98, 0.92) 0%, rgba(199, 85, 136, 0.78) 100%);
}
.login-brand-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand-logo .logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-headline {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.brand-sub {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 36px;
  max-width: 420px;
  line-height: 1.7;
}
.brand-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.brand-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.96;
}
.brand-feature .feat-dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-footer {
  position: relative;
  z-index: 2;
  font-size: 13px;
  opacity: 0.8;
}

/* 右侧表单区 */
.login-form-side {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  position: relative;
  z-index: 2;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  padding: 40px 38px;
  box-shadow: 0 24px 70px rgba(160, 55, 98, 0.14), 0 2px 6px rgba(0, 0, 0, 0.03);
  animation: slideUp 0.5s ease;
}
.login-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}
.login-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}

/* 角色切换 */
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.role-tab {
  cursor: pointer;
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  border: 1.5px solid #eadbe3;
  background: #fff;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.role-tab:hover {
  border-color: #d99cb8;
  transform: translateY(-2px);
}
.role-tab.active {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(160, 55, 98, 0.28);
}
.role-tab .role-ico {
  font-size: 28px;
  margin-bottom: 6px;
}
.role-tab .role-name {
  font-size: 15px;
  font-weight: 700;
}
.role-tab .role-st {
  font-size: 11px;
  opacity: 0.78;
  margin-top: 2px;
}
.role-tab.active .role-st {
  opacity: 0.92;
}

/* 表单 */
.login-field {
  margin-bottom: 4px;
}
.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 18px;
}
.demo-hint {
  font-size: 12px;
  color: #94a3b8;
}
.demo-fill {
  font-size: 12.5px;
  color: #a03762;
  font-weight: 600;
  cursor: pointer;
}
.demo-fill:hover {
  text-decoration: underline;
}
.login-btn {
  border-radius: 14px !important;
  height: 50px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  box-shadow: 0 10px 28px rgba(160, 55, 98, 0.32) !important;
}
.login-error {
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.login-foot-tip {
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 22px;
}

/* 移动端 */
@media (max-width: 900px) {
  .login-brand { display: none; }
  .login-form-side { flex: 1; }
}
@media (max-width: 480px) {
  .login-card { padding: 32px 24px; border-radius: 22px; }
  .brand-headline { font-size: 30px; }
}
