/* ═══ 饭小派数据中心 — 登录/注册页 V3（RuoYi 左右分栏风格）═══ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1a1a2e;
  overflow: hidden;
  /* 统一渐变背景：从左到右深蓝→亮蓝→浅白 */
  background: linear-gradient(to right, #6B4226 0%, #e88a35 35%, #F2994A 60%, #bfdbfe 80%, #FFE9CC 100%);
}

/* ═══ 全屏左右分栏 ═══ */
.login-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* ═══ 左侧：品牌展示区 ═══ */
.login-left {
  flex: 0 0 42%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 左侧装饰圆 */
.login-left::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.04);
  top: -160px; right: -200px;
}
.login-left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05);
  bottom: -80px; left: -100px;
}

/* 左侧品牌内容 */
.brand-left {
  text-align: center;
  position: relative;
  z-index: 1;
}
.brand-left .logo {
  width: 72px; height: 72px;
  line-height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,.15);
  font-size: 36px;
  margin: 0 auto 24px;
}
.brand-left .name {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.brand-left .divider {
  width: 40px; height: 3px;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.brand-left .desc {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  letter-spacing: 1px;
  line-height: 1.8;
}
.brand-left .features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-left .feature-item {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
}
.brand-left .feature-item::before {
  content: '· ';
  color: rgba(255,255,255,.9);
}

/* ═══ 右侧：登录表单区 ═══ */
.login-right {
  flex: 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 右侧登录卡片 */
.login-card {
  width: 380px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  padding: 40px 36px 32px;
}

.login-card .card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 8px;
}
.login-card .card-subtitle {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 28px;
}

/* ═══ Tab 切换 ═══ */
.tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: color .2s;
}
.tab:hover { color: #64748b; }
.tab.active {
  color: #F2994A;
  font-weight: 600;
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: #F2994A;
  border-radius: 2px;
}

/* ═══ 表单 ═══ */
.form-panel { display: none; }
.form-panel.active { display: block; }

/* 输入框 */
.field { margin-bottom: 20px; }
.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  border-color: #F2994A;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.field .inline-err {
  font-size: 12px;
  color: #ef4444;
  margin-top: 5px;
  display: none;
}

/* 下拉菜单 — 和输入框完全一致 */
.field select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  color: #333;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus {
  border-color: #F2994A;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* 数字输入框去掉默认箭头（可选） */
.field input[type="number"] {
  -moz-appearance: textfield;
}
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* 提示区 */
.msg {
  font-size: 13px;
  text-align: center;
  margin-bottom: 14px;
  min-height: 20px;
}
.msg.error { color: #ef4444; }
.msg.success { color: #10b981; }

/* 按钮 */
.btn {
  width: 100%;
  height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #F2994A;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 4px;
  transition: background .2s, box-shadow .2s;
}
.btn:hover {
  background: #e88a35;
  box-shadow: 0 4px 16px rgba(59,130,246,.3);
}
.btn:disabled {
  background: #FFDFBB;
  pointer-events: none;
  box-shadow: none;
}

/* 底部链接 */
.switch-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #94a3b8;
}
.switch-link a {
  color: #F2994A;
  cursor: pointer;
  text-decoration: none;
}
.switch-link a:hover { text-decoration: underline; }

/* ═══ 注册成功弹窗 ═══ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px;
  text-align: center;
  min-width: 300px;
  box-shadow: 0 12px 48px rgba(0,0,0,.15);
}
.modal .modal-icon { font-size: 36px; margin-bottom: 12px; }
.modal .modal-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #1a1a2e; }
.modal .modal-btn {
  margin-top: 16px;
  padding: 10px 40px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #F2994A;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.modal .modal-btn:hover { background: #e88a35; }
