/* ============================================================================
   Login —— 全屏液态玻璃登录页
   ========================================================================== */

.login-wrap {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px 72px;
  overflow: hidden;
}

/* 登录页专属：更浓的极光 */
.login-aurora {
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  opacity: .85;
  background:
    radial-gradient(36% 32% at 18% 24%, rgba(10, 132, 255, .55), transparent 70%),
    radial-gradient(32% 30% at 82% 20%, rgba(191, 90, 242, .48), transparent 70%),
    radial-gradient(38% 34% at 62% 82%, rgba(48, 209, 88, .38), transparent 70%),
    radial-gradient(30% 28% at 24% 88%, rgba(255, 159, 10, .34), transparent 70%);
  animation: aurora-drift 24s var(--ease-in-out) infinite alternate;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(1040px, 100%);
  min-height: 592px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-glass-lg), 0 60px 140px -40px rgba(6, 12, 30, .48);
  animation: login-in 640ms var(--spring);
}
@keyframes login-in {
  from { opacity: 0; transform: translateY(22px) scale(.975); }
  to   { opacity: 1; transform: none; }
}

/* 左：品牌面板（深色渐变玻璃） */
.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 38px 38px 34px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 10% 0%, #2C6BE0 0%, transparent 55%),
    radial-gradient(110% 90% at 100% 100%, #7A3BD8 0%, transparent 58%),
    linear-gradient(150deg, #0B2A63 0%, #1B2470 46%, #3A1A6B 100%);
  isolation: isolate;
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(46% 40% at 78% 12%, rgba(255, 255, 255, .26), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-size: auto, 200px 200px;
  mix-blend-mode: overlay;
  opacity: .85;
  pointer-events: none;
}
.login-brand > * { position: relative; z-index: 1; }

.login-ico {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34);
}

.login-plat {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  font-size: 11px; font-weight: 800; color: #fff;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px -8px rgba(0, 0, 0, .6);
  transition: transform var(--dur) var(--spring);
  cursor: default;
}
.login-plat:hover { transform: translateY(-4px) scale(1.1); }

/* 右：表单面板 */
.login-form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 46px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.56));
  -webkit-backdrop-filter: blur(var(--blur-l)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur-l)) saturate(var(--sat));
}
.login-form::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.15));
}
.login-form .tabs { max-width: 100%; }
.login-form .input-group { background: rgba(255, 255, 255, .55); }
.login-form .input-group:focus-within { background: rgba(255, 255, 255, .9); }

/* 页脚 */
.login-foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 20px;
  font-size: 11.5px;
  color: var(--t3);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .5));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 响应式：窄屏隐藏品牌面板 */
@media (max-width: 880px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .login-brand { padding: 26px 26px 22px; gap: 20px; }
  .login-brand h1 { font-size: 23px !important; }
  .login-brand > div:nth-child(2) > .col { display: none; }
  .login-form { padding: 30px 26px; }
}

/* ============================================================================
   页面切换动画
   ========================================================================== */
.page-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.page-in.is-in { opacity: 1; transform: none; }

/* 顶栏搜索在窄屏收起 */
@media (max-width: 760px) {
  .topbar .search { display: none; }
  .user-chip .col, .user-chip > div:last-child { display: none; }
}
