/* ==========================================================================
   盒子云高保真登录页面全新样式表 (1:1 像素级复刻 登陆页面参考.jpg)
   设计规范：
   - 左侧：深邃午夜蓝渐变侧栏 (420px)，白色文字与多色图标矩阵
   - 右侧：浅蓝灰纯净科技空间，完全居中悬浮极简纯白卡片
   - 交互：下划线 Tab、高质感输入框、算术人机徽章、科技蓝渐变登录大按钮
   ========================================================================== */

[v-cloak] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #edf2f7;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#login, #regist, #forget {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
}

.login-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   左侧区域：大气开阔樱花浅粉带渐变侧栏 (延伸至 520px/32vw)
   ========================================================================== */
.login-aside {
  width: clamp(480px, 34vw, 560px);
  min-width: 460px;
  height: 100vh;
  background: linear-gradient(175deg, #fff5f7 0%, #fdecef 38%, #fce2e8 72%, #f9d2dc 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 5vh, 60px) clamp(44px, 3.8vw, 64px);
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 2;
  box-shadow: 6px 0 28px rgba(244, 114, 182, 0.1);
  border-right: 1px solid rgba(251, 207, 216, 0.7);
}

/* 装饰性浪漫浅粉光晕 */
.login-aside::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background: radial-gradient(circle at 10% 90%, rgba(244, 114, 182, 0.25) 0%, rgba(255, 241, 242, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.aside-brand {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

/* 企业大气高质感 LOGO 显示 */
.brand-logo-img {
  max-height: 84px;
  max-width: 380px;
  min-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(244, 114, 182, 0.22));
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-badge-vip {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #be185d;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(244, 114, 182, 0.6);
  box-shadow: 0 3px 8px rgba(244, 114, 182, 0.16);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-text-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cloud-icon {
  flex-shrink: 0;
}

.brand-name {
  font-size: 30px;
  font-weight: 800;
  color: #831843;
  letter-spacing: 0.5px;
}

.aside-content {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: 20px 0;
}

.aside-title {
  font-size: clamp(26px, 3vh, 32px);
  font-weight: 800;
  color: #4a044e;
  line-height: 1.3;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
}

.aside-subtitle {
  font-size: 14px;
  color: #701a75;
  opacity: 0.88;
  line-height: 1.6;
  margin: 0 0 clamp(24px, 3.5vh, 40px) 0;
}

/* 5项特性列表 */
.aside-features {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vh, 24px);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  color: #ffffff;
}

/* 多彩徽章色彩 */
.feature-icon.icon-blue {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

.feature-icon.icon-purple {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.feature-icon.icon-cyan {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
}

.feature-icon.icon-green {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.feature-icon.icon-orange {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #701a75;
  margin-bottom: 4px;
  line-height: 1.35;
}

.feature-desc {
  font-size: 13px;
  color: #86198f;
  opacity: 0.8;
  line-height: 1.5;
}

.aside-footer {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  color: #9d174d;
  opacity: 0.75;
}

/* ==========================================================================
   右侧区域：浅蓝灰纯净科技空间 (自适应极简居中浮动纯白卡片)
   ========================================================================== */
.login-main {
  flex: 1;
  height: 100vh;
  background: linear-gradient(135deg, #e8f7f5 0%, #d7f0ed 48%, #c8e8e5 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  overflow-y: auto;
}

.login-box-container {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vh, 28px) 16px;
  box-sizing: border-box;
  min-height: min-content;
}

/* 居中纯白卡片 (紧凑高质感，上下间隔极简精致) */
.login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 24px 14px !important;
  box-sizing: border-box;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(226, 232, 240, 0.85);
  transition: box-shadow 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(203, 213, 225, 0.9);
}

.card-header {
  text-align: center;
  margin-bottom: 12px !important;
}

.card-title {
  font-size: 20px !important;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0 !important;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 12px !important;
  color: #64748b;
  margin: 0 !important;
}

/* 经典下划线式 Tab 栏 */
.login-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0px;
}

.tab-item {
  font-size: 13.5px !important;
  color: #64748b;
  cursor: pointer;
  padding: 2px 0 6px 0;
  position: relative;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tab-item:hover {
  color: #2563eb;
}

.tab-item.active {
  color: #2563eb;
  font-weight: 600;
}

.tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #2563eb;
  border-radius: 2px;
}

/* 表单输入组：严格收敛上下极简间隙，消除大片空白 */
.card-form-body {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.form-pane {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.form-group {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
  display: block !important;
  line-height: normal !important;
}

.form-group:last-child {
  margin-bottom: 8px !important;
}

/* 注册页面与找回密码表单项 */
#regist .form-group,
#forget .form-group {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
  display: block !important;
  line-height: normal !important;
}

/* Element UI 输入框定制 */
.login-card .el-input {
  margin: 0 !important;
}

.login-card .el-input__inner {
  height: 36px !important;
  line-height: 36px !important;
  border-radius: 8px;
  border: 1px solid #dcdfe6;
  background-color: #ffffff;
  color: #1e293b;
  font-size: 13px;
  padding-left: 36px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card .el-input__inner:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

.login-card .el-input__prefix {
  left: 12px;
  color: #94a3b8;
  font-size: 16px;
  display: flex;
  align-items: center;
}

/* 区号与手机号共用外框，隔离 Element UI prepend 的负边距。 */
.card-form-body .input-with-select {
  --country-code-width: 96px;
  display: flex !important;
  width: 100%;
  min-width: 0;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dcdfe6;
}
.card-form-body .input-with-select:focus-within {
  box-shadow: inset 0 0 0 1px #3b82f6, 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.card-form-body .input-with-select > .el-input-group__prepend {
  display: flex;
  flex: 0 0 var(--country-code-width);
  width: var(--country-code-width);
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #dcdfe6;
  border-radius: 8px 0 0 8px;
  background: #f8fafc;
}
.card-form-body .input-with-select:focus-within > .el-input-group__prepend {
  border-color: #3b82f6;
  border-right-color: #dcdfe6;
}
.card-form-body .input-with-select .el-input-group__prepend .el-select {
  display: block;
  width: 100%;
  margin: 0 !important;
}
.card-form-body .input-with-select .el-select .el-input {
  width: 100%;
  min-width: 0;
}
.card-form-body .input-with-select .el-select .el-input__inner {
  padding: 0 28px 0 12px !important;
  border: 0 !important;
  border-radius: 8px 0 0 8px;
  background: transparent;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
  box-shadow: none !important;
}
.card-form-body .input-with-select > .el-input__inner {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 0 12px 0 36px !important;
  border: 1px solid transparent !important;
  border-radius: 0 8px 8px 0;
  background: transparent;
  box-shadow: none !important;
}
.card-form-body .input-with-select .el-input__inner {
  box-sizing: border-box;
  height: 38px !important;
  line-height: 38px !important;
}
/* 外层电话图标不能沿用 Element UI 按 prepend 宽度计算的平移。 */
.card-form-body .input-with-select > .el-input__prefix {
  left: calc(var(--country-code-width) + 8px);
  transform: none !important;
  pointer-events: none;
}
.card-form-body .input-with-select .el-input__icon {
  line-height: 38px;
}
.country-code-popper.el-select-dropdown {
  width: 280px;
  min-width: 0 !important;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.country-code-popper .el-select-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
  line-height: 38px;
  padding: 0 12px;
  color: #1e293b;
}
.country-code-popper .country-code-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-code-popper .country-code-number {
  flex: 0 0 56px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #475569;
}
.country-code-popper .el-select-dropdown__item.hover,
.country-code-popper .el-select-dropdown__item:hover {
  background: #f1f5f9;
}
.country-code-popper .el-select-dropdown__item.selected,
.country-code-popper .el-select-dropdown__item.selected .country-code-number {
  color: #2563eb;
  font-weight: 600;
}

/* 算术验证码行 (1:1 还原参考图) */
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-row .el-input {
  flex: 1;
}

.math-captcha-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  color: #1e293b;
  font-size: 14.5px;
  font-weight: 600;
  font-family: Consolas, Monaco, monospace;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.math-captcha-badge:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.math-captcha-badge .el-icon-refresh {
  font-size: 13px;
  color: #64748b;
  transition: transform 0.3s;
}

.math-captcha-badge:hover .el-icon-refresh {
  transform: rotate(180deg);
  color: #2563eb;
}

/* 短信验证码行 */
.code-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code-input-row .el-input {
  flex: 1;
}

.send-code-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #dcdfe6;
  background: #ffffff;
  color: #2563eb;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.send-code-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

/* 记住登录 & 忘记密码 */
.form-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 10px 0 !important;
  font-size: 13px;
}

.form-extra-row .el-checkbox__label {
  color: #64748b;
  font-size: 12.5px;
}

.forget-pwd-link {
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
  font-size: 12.5px;
  transition: color 0.2s;
}

.forget-pwd-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* 错误提示框 */
.form-error-tip {
  padding: 5px 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
  font-size: 12px;
  margin-bottom: 4px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 科技蓝渐变大按钮 */
.form-btn-row {
  margin-bottom: 10px !important;
}

.btn-primary-blue {
  width: 100%;
  height: 40px !important;
  background: linear-gradient(135deg, #4f6ff6 0%, #3b5df5 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 93, 245, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-blue:hover {
  background: linear-gradient(135deg, #4364ed 0%, #2e4fe8 100%);
  box-shadow: 0 6px 16px rgba(59, 93, 245, 0.45);
  transform: translateY(-1px);
}

.btn-primary-blue:active {
  transform: translateY(0);
}

.btn-primary-blue:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* 底部操作导航 (还没账号？立即注册 · 返回首页) */
.card-footer-nav {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-accent-link {
  color: #2563eb;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.nav-accent-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.nav-divider {
  color: #cbd5e1;
}

.nav-sub-link {
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
}

.nav-sub-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* 第三方登录 */
.oauth-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.oauth-divider {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.oauth-list {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.oauth-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #ffffff;
}

.oauth-badge:hover {
  border-color: #3b82f6;
  transform: scale(1.08);
}

.oauth-icon {
  width: 20px;
  height: 20px;
}

/* 卡片下方安全说明 (1:1 还原参考图) */
.login-safety-notice {
  margin-top: clamp(8px, 1.5vh, 14px);
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  max-width: 440px;
  line-height: 1.45;
}

/* 微信扫码 */
.qr-pane {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.qr-box {
  text-align: center;
}

.qr-box-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  background: #ffffff;
  position: relative;
}

.qr-box-img img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-expire-time {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  font-size: 13px;
  cursor: pointer;
}

.qr-box-tips {
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   右下角悬浮小工具 (1:1 还原参考图右下角)
   ========================================================================== */
.floating-service-widget {
  position: fixed;
  right: 18px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 99;
}

.floating-service-widget .service-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.service-badge-text {
  cursor: pointer;
}

.service-btn {
  width: 48px;
  height: 52px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border: 1px solid #edf2f7;
  transition: all 0.2s ease;
}

.service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.service-btn i {
  font-size: 18px;
  color: #475569;
}

.service-btn i.icon-wechat {
  color: #10b981;
}

.service-label {
  font-size: 11px;
  color: #64748b;
}

/* ==========================================================================
   响应式断点适配
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .login-aside {
    display: none;
  }
  .login-main {
    width: 100%;
  }
}
