/* ============================================================
   海南曦讯科技 · 登录页  深咖沉浸 + 暖白表单 · crafted
   ============================================================ */
[v-cloak] { display: none !important; }

.auth-body { background: var(--mh-bg-dark); margin: 0; overflow-x: hidden; }
.auth-body #mainLoading { background: var(--mh-bg-dark); }
.auth-body .template { display: none; }   /* login.js mounted 设 block */

/* ---------- 外壳：左右分栏 ---------- */
.auth-shell {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 100vh;
}

/* ============================================================
   左 · 品牌沉浸区
   ============================================================ */
.auth-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 8%, #4A3826 0%, rgba(74,56,38,0) 55%),
    linear-gradient(150deg, #211a12 0%, #2B1D10 45%, #3a2c1d 100%);
  color: var(--mh-text-inverse);
  padding: 56px 64px;
  display: flex;
}

/* 氛围层：暖光晕漂浮 + 细线网格 */
.brand-ambient { position: absolute; inset: 0; pointer-events: none; }
.brand-ambient .glow {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  mix-blend-mode: screen;
}
.glow-1 { width: 420px; height: 420px; top: -90px; left: -70px;
  background: radial-gradient(circle, rgba(201,168,118,.55), rgba(201,168,118,0) 70%);
  animation: drift1 16s ease-in-out infinite; }
.glow-2 { width: 360px; height: 360px; bottom: -110px; right: -60px;
  background: radial-gradient(circle, rgba(139,94,60,.6), rgba(139,94,60,0) 70%);
  animation: drift2 20s ease-in-out infinite; }
.glow-3 { width: 240px; height: 240px; top: 42%; left: 55%;
  background: radial-gradient(circle, rgba(224,201,160,.4), rgba(224,201,160,0) 70%);
  animation: drift3 13s ease-in-out infinite; }
.brand-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 100% at 30% 30%, #000 30%, transparent 78%);
  animation: gridmove 30s linear infinite;
}
@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(34px,28px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,-22px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-22px,18px) scale(1.12)} }
@keyframes gridmove { from{background-position:0 0,0 0} to{background-position:46px 46px,46px 46px} }

/* 漂浮意象卡 */
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(224,201,160,.22);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.32);
}
.float-card b { display: block; font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.float-card small { display: block; font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px; }
.fc-ico {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--mh-gradient-warm); color: #fff;
}
.fc-1 { top: 16%; right: 8%;  animation: floaty 7s ease-in-out infinite; }
.fc-2 { top: 46%; right: 18%; animation: floaty 8.5s ease-in-out infinite .8s; }
.fc-3 { bottom: 16%; right: 6%; animation: floaty 9.5s ease-in-out infinite 1.4s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* 品牌内容 */
.brand-inner { position: relative; z-index: 3; display: flex; flex-direction: column; width: 100%; max-width: 460px; }
.brand-mark { display: flex; align-items: center; gap: 12px; }
.mark-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--mh-accent); box-shadow: 0 0 18px rgba(201,168,118,.7); }
.mark-name { font-family: var(--mh-font-display); font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.mark-sub { display: block; font-family: var(--mh-font-body); font-size: 11px; letter-spacing: 4px; color: rgba(255,255,255,.5); font-weight: 400; }

.brand-copy { margin: auto 0; padding: 48px 0; }
.eyebrow { font-size: 12px; letter-spacing: 5px; color: var(--mh-accent); margin-bottom: 22px; }
.brand-title {
  font-family: var(--mh-font-display); font-weight: 700;
  font-size: clamp(44px, 5vw, 68px); line-height: 1.04; letter-spacing: 1px;
  margin: 0 0 24px;
}
.brand-title em { font-style: italic; color: var(--mh-accent);
  background: linear-gradient(100deg, #F6E2AE, #E6B34A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-lead { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.62); max-width: 380px; }

.brand-stats { display: flex; gap: 36px; list-style: none; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.brand-stats li { display: flex; flex-direction: column; }
.bs-num { font-family: var(--mh-font-display); font-size: 28px; font-weight: 700; color: var(--mh-accent-light); }
.bs-lab { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; letter-spacing: 1px; }

/* ============================================================
   右 · 表单区
   ============================================================ */
.auth-panel {
  position: relative;
  background: linear-gradient(180deg, var(--mh-bg-card) 0%, var(--mh-bg-soft) 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(32px, 6vw, 88px);
}
.panel-lang { position: absolute; top: 26px; right: 32px; }
.panel-lang .el-select { width: 120px; }
.lang-option { display: flex; align-items: center; gap: 8px; }
.lang-img { width: 18px; height: 13px; border-radius: 2px; }

.panel-head { margin-bottom: 30px; }
.panel-title { font-family: var(--mh-font-display); font-size: 32px; font-weight: 700; color: var(--mh-text-1); margin: 0 0 8px; }
.panel-sub { color: var(--mh-text-3); font-size: 14px; }

/* segmented 登录方式 */
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--mh-bg-section); border-radius: 12px; padding: 5px; margin-bottom: 26px;
}
.seg-btn {
  position: relative; z-index: 2; border: none; background: none; cursor: pointer;
  height: 44px; border-radius: 9px; font-size: 14px; font-weight: 500;
  color: var(--mh-text-3); display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: color .3s var(--mh-ease);
}
.seg-btn.active { color: var(--mh-text-inverse); }
.seg-thumb {
  position: absolute; z-index: 1; top: 5px; left: 5px; width: calc(50% - 5px); height: 44px;
  background: var(--mh-gradient-warm); border-radius: 9px; box-shadow: var(--mh-shadow-md);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.seg-thumb.right { transform: translateX(100%); }

/* 表单字段 */
.form { display: flex; flex-direction: column; }
.field { display: block; margin-bottom: 18px; }
.field-lab { display: block; font-size: 13px; color: var(--mh-text-2); margin-bottom: 8px; font-weight: 500;
  transition: color .25s var(--mh-ease); }
.field-ctrl {
  display: flex; align-items: center; gap: 10px;
  background: var(--mh-bg-card); border: 1.5px solid var(--mh-border); border-radius: 12px;
  padding: 0 16px; height: 52px;
  transition: border-color .25s var(--mh-ease), box-shadow .25s var(--mh-ease);
}
.field-ctrl:focus-within { border-color: var(--mh-primary); box-shadow: 0 0 0 4px rgba(141,60,13,.1); }
.field:focus-within .field-lab { color: var(--mh-primary); }
.field-ctrl input {
  flex: 1; border: none; outline: none; background: none; height: 100%;
  font-size: 15px; color: var(--mh-text-1); font-family: var(--mh-font-body);
}
.field-ctrl input::placeholder { color: var(--mh-text-4); }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; background-color: var(--mh-text-3);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; transition: background-color .25s; }
.field-ctrl:focus-within .ic.pre { background-color: var(--mh-primary); }
.ic-phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11 11 0 0 0 3.5.56 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11 11 0 0 0 .56 3.5 1 1 0 0 1-.25 1Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11 11 0 0 0 3.5.56 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11 11 0 0 0 .56 3.5 1 1 0 0 1-.25 1Z'/%3E%3C/svg%3E"); }
.ic-mail { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 4 8 5 8-5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 4 8 5 8-5'/%3E%3C/svg%3E"); }
.ic-lock { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1Zm2 0h8V8a4 4 0 0 0-8 0Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1Zm2 0h8V8a4 4 0 0 0-8 0Z'/%3E%3C/svg%3E"); }
.ic-shield { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5Z'/%3E%3C/svg%3E"); }

/* 国家码 select 融入 */
.field-ctrl.with-code { padding-left: 6px; }
.field-ctrl.with-code .code-sel { width: 84px; flex: none; }
.code-sel .el-input__inner { border: none !important; background: none !important; height: 38px; line-height: 38px; font-weight: 600; color: var(--mh-text-1); padding-left: 10px; }
.code-sel .el-input__suffix { right: 2px; }
.field-ctrl.with-code .el-input::after { content: ""; width: 1px; height: 22px; background: var(--mh-line); margin-left: 4px; }

/* 验证码按钮 */
.field-ctrl.with-btn { padding-right: 6px; }
.code-btn {
  flex: none; height: 40px; padding: 0 16px; border: none; cursor: pointer;
  background: var(--mh-bg-section); color: var(--mh-primary); border-radius: 9px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .25s var(--mh-ease);
}
.code-btn:hover { background: var(--mh-accent-light); }

/* 协议 + 忘记 */
.form-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; }
.agree { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.agree-text { font-size: 12.5px; color: var(--mh-text-3); line-height: 1.5; }
.link { color: var(--mh-primary); cursor: pointer; font-weight: 500; }
.link:hover { color: var(--mh-primary-hover); text-decoration: underline; }
.forget { font-size: 12.5px; white-space: nowrap; }
.form-err { margin-bottom: 16px; border-radius: 10px !important; }

/* 登录按钮 */
.submit-btn {
  position: relative; overflow: hidden; width: 100%; height: 52px; border: none; cursor: pointer;
  background: var(--mh-gradient-warm); color: var(--mh-text-inverse);
  border-radius: 12px; font-size: 16px; font-weight: 600; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 24px rgba(141,60,13,.28);
  transition: transform .25s var(--mh-ease), box-shadow .25s var(--mh-ease);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(141,60,13,.4); }
.submit-btn:active { transform: translateY(0); }
.submit-btn .sb-arrow { transition: transform .25s var(--mh-ease); }
.submit-btn:hover .sb-arrow { transform: translateX(5px); }
.submit-btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg);
}
.submit-btn:hover::after { animation: sweep .9s ease; }
@keyframes sweep { to { left: 130%; } }
.submit-btn.loading { opacity: .8; pointer-events: none; }

.mode-switch { text-align: center; margin-top: 18px; }
.mode-switch a { color: var(--mh-text-3); font-size: 13px; cursor: pointer; }
.mode-switch a:hover { color: var(--mh-primary); }

/* 第三方 */
.oauth-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; color: var(--mh-text-4); font-size: 12px; }
.oauth-divider::before, .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--mh-line); }
.oauth-row { display: flex; gap: 16px; justify-content: center; }
.oauth-item {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--mh-line); background: var(--mh-bg-card);
  display: grid; place-items: center; overflow: hidden;
  transition: transform .25s var(--mh-ease), box-shadow .25s var(--mh-ease), border-color .25s;
}
.oauth-item:hover { transform: translateY(-3px); box-shadow: var(--mh-shadow-md); border-color: var(--mh-accent); }
.oauth-item img { width: 24px; height: 24px; }

/* 入场 stagger */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .6s var(--mh-ease) forwards; }
.r1 { animation-delay: .1s; } .r2 { animation-delay: .2s; } .r3 { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 协议复选框尺寸 */
.agree .el-checkbox__inner { border-radius: 5px; }
.agree .el-checkbox__input.is-checked .el-checkbox__inner { background-color: var(--mh-primary); border-color: var(--mh-primary); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px 28px 40px; min-height: auto; }
  .brand-copy { padding: 22px 0; }
  .brand-title { font-size: 40px; }
  .brand-lead { display: none; }
  .float-card { display: none; }
  .brand-stats { gap: 24px; }
  .auth-panel { padding: 36px 26px 48px; }
}
@media (max-width: 480px) {
  .auth-brand { padding: 26px 22px 30px; }
  .brand-stats { display: none; }
  .auth-panel { padding: 30px 20px 40px; }
}
