/* ============ 登录/注册页样式 ============
   1:1 复刻参考站（goim.gaoranyun.com/ironMan/signInx）视觉：
   左右分栏 + 浅蓝渐变左区 + 白底右区表单，900px 以下自动切 H5 单列
   ========================================== */

/* 页面容器：固定铺满视口，内部各自滚动，避免受全局 body 样式影响 */
.lg-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  animation: lgPageLoad .5s ease-out;
}
@keyframes lgPageLoad { from { opacity: 0; } to { opacity: 1; } }

.lg-signin {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

/* ---------------- 左侧品牌区 ---------------- */
.lg-left {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: inset -5px 0 20px rgba(0, 0, 0, .05);
}
.lg-left::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, .15) 0%, transparent 50%);
  pointer-events: none;
  animation: lgFloat 20s ease-in-out infinite;
}
.lg-left::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -30%;
  width: 150%; height: 150%;
  background: radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .1) 0%, transparent 50%);
  pointer-events: none;
  animation: lgFloat 25s ease-in-out infinite reverse;
}
@keyframes lgFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -30px); }
}
.lg-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
}
.lg-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 40px 50px 20px;
  color: #fff;
  justify-content: space-between;
}

/* 品牌 LOGO（图形 + 文字） */
.lg-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: lgFadeInDown 1s ease-out;
}
.lg-brand-mark {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #1e2740;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  flex-shrink: 0;
}
.lg-brand-mark svg { width: 34px; height: 34px; display: block; }
.lg-brand-dot {
  position: absolute;
  right: 4px; bottom: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #1e2740;
}
.lg-brand-text {
  font-size: 30px;
  font-weight: 700;
  color: #2d3748;
  letter-spacing: 1px;
  white-space: nowrap;
}
.lg-brand-text b { color: #667eea; font-weight: 700; }

.lg-logo-header { margin-bottom: 40px; }

@keyframes lgFadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 左侧文案 */
.lg-text { flex: 0 0 auto; }
.lg-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 30px 0;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
  animation: lgFadeInUp 1s ease-out .2s both;
  text-align: center;
  letter-spacing: 1px;
  color: #2d3748;
}
.lg-title .highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  display: inline;
}
@keyframes lgFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.lg-subtitle {
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  animation: lgFadeInUp 1s ease-out .4s both;
  color: #4a5568;
}
.lg-subtitle > span { display: inline-flex; align-items: center; white-space: nowrap; }
.lg-subtitle .tag {
  background: rgba(102, 126, 234, .1);
  padding: 10px 24px;
  border-radius: 22px;
  border: 1.5px solid rgba(102, 126, 234, .3);
  backdrop-filter: blur(10px);
  font-weight: 600;
  transition: all .3s ease;
  font-size: 15px;
  white-space: nowrap;
  color: #667eea;
}
.lg-subtitle .tag:hover {
  background: rgba(102, 126, 234, .15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, .2);
  border-color: rgba(102, 126, 234, .5);
}

/* 左侧展示图 */
.lg-showcase {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  animation: lgFloatImage 4s ease-in-out infinite;
  margin-top: 40px;
  overflow: visible;
}
.lg-product {
  width: 140%;
  max-width: 800px;
  height: auto;
  border-radius: 0;
}
@keyframes lgFloatImage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ---------------- 右侧表单区 ---------------- */
.lg-right,
.lg-reg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: #fff;
  overflow-y: auto;
  position: relative;
}
.lg-reg { width: 100%; }

.lg-form-wrap,
.lg-reg .el-form {
  width: 100%;
  max-width: 420px;
  animation: lgFadeInRight .8s ease-out;
}
@keyframes lgFadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 右侧顶部 LOGO（居中） */
.lg-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 32px;
  animation: lgFadeInDown .6s ease-out;
}
.lg-login-logo .lg-brand-mark { width: 48px; height: 48px; border-radius: 14px; }
.lg-login-logo .lg-brand-mark svg { width: 30px; height: 30px; }
.lg-login-logo .lg-brand-text { font-size: 26px; }

.lg-form-title {
  font-size: 26px;
  margin: 0 0 10px 0;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  letter-spacing: .3px;
}
.lg-form-sub {
  font-size: 14px;
  color: #909399;
  margin: 0 0 40px 0;
  text-align: center;
  line-height: 1.5;
}
.lg-desc {
  font-size: 14px;
  text-align: center;
  margin-top: 24px;
  color: #606266;
}
.lg-desc a {
  text-decoration: none;
  cursor: pointer;
  color: #667eea;
  font-weight: 500;
  transition: all .3s ease;
  position: relative;
  margin-left: 4px;
}
.lg-desc a:hover { color: #5567d8; }
.lg-desc a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: -2px; left: 50%;
  background-color: #667eea;
  transition: all .3s ease;
  transform: translateX(-50%);
}
.lg-desc a:hover::after { width: 100%; }

/* ---------------- Element Plus 表单控件适配 ---------------- */
.lg-signin .el-form-item { margin-bottom: 22px; }

.lg-signin .el-input__wrapper {
  height: 50px;
  border-radius: 10px;
  background-color: #f8f9fa;
  box-shadow: 0 0 0 1px #e4e7ed inset;
  padding: 0 14px 0 14px;
  transition: all .3s ease;
}
.lg-signin .el-input__wrapper:hover { box-shadow: 0 0 0 1px #c0c4cc inset; }
.lg-signin .el-input__wrapper.is-focus {
  background-color: #fff;
  box-shadow: 0 0 0 1px #667eea inset, 0 0 0 3px rgba(102, 126, 234, .1);
}
.lg-signin .el-input__inner {
  height: 48px;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  font-size: 14px;
  outline: none;
}
.lg-signin .el-input__inner:focus { border: none; box-shadow: none; }
.lg-signin .el-input__prefix {
  color: #909399;
  font-size: 18px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
}
.lg-signin .el-input__prefix svg { width: 18px; height: 18px; display: block; }

/* 抑制 Chrome 自动填充给原生 input 涂的内底色。
   Element Plus 里 input 是包在 .el-input__wrapper 内部的，autofill 会在框内多涂出
   一个浅色小矩形（"框中框"）；原站是 Element UI 2.x，input 本身就是外框所以看不出问题。
   用 inset 阴影把 autofill 底色覆盖成与外框一致的颜色。 */
.lg-signin .el-input__inner:-webkit-autofill,
.lg-signin .el-input__inner:-webkit-autofill:hover,
.lg-signin .el-input__inner:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f8f9fa inset;
  -webkit-text-fill-color: #303133;
  caret-color: #303133;
  transition: background-color 999999s ease-out 0s;
}
.lg-signin .el-input__wrapper.is-focus .el-input__inner:-webkit-autofill,
.lg-signin .el-input__wrapper.is-focus .el-input__inner:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/* 图形验证码行（尺寸对齐原站 .captcha-wrapper / .captcha-img） */
.lg-signin .captcha-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.lg-signin .captcha-wrapper .captcha-input { flex: 1; min-width: 0; }
.lg-signin .captcha-img {
  flex: 0 0 130px;
  width: 130px;
  height: 50px;
  display: block;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid #e4e7ed;
  background-color: #f8f9fa;
  transition: all .3s ease;
}
.lg-signin .captcha-img:hover {
  border-color: #667eea;
  box-shadow: 0 2px 10px rgba(102, 126, 234, .25);
  transform: translateY(-1px);
}
.lg-signin .captcha-img:active { transform: translateY(0); }

/* 主按钮 */
.lg-signin .el-button--primary {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  font-size: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, .3);
}
.lg-signin .el-button--primary:hover {
  background: linear-gradient(135deg, #5567d8 0%, #653991 100%);
  box-shadow: 0 6px 20px rgba(102, 126, 234, .5);
  transform: translateY(-2px);
}
.lg-signin .el-button--primary:active { transform: translateY(0); }

/* 协议/记住密码 */
.lg-signin .el-checkbox { margin-right: 5px; }
.lg-signin .el-checkbox:last-of-type { margin: 0 5px 0 10px; }
.lg-signin .el-checkbox__inner:hover,
.lg-signin .el-checkbox__input.is-checked .el-checkbox__inner,
.lg-signin .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  border-color: #667eea;
  background-color: #667eea;
}
.lg-signin .el-checkbox__label { font-size: 14px; color: #606266; }

/* 短信验证码行 */
.lg-code-row { display: flex; gap: 12px; width: 100%; align-items: center; }
.lg-code-row .el-input { flex: 1; }
.lg-code-row .el-button {
  width: 132px;
  height: 50px;
  border-radius: 10px;
  font-size: 13px;
  flex-shrink: 0;
  border-color: #dcdfe6;
  color: #606266;
}
.lg-code-row .el-button:not(.is-disabled):hover { color: #667eea; border-color: #667eea; }

/* 提示文字 */
.lg-tip {
  font-size: 12px;
  color: #999;
  line-height: 1.7;
  margin-bottom: 14px;
}
.lg-tip b { color: #667eea; }

/* 登录页内的消息提示 */
.lg-signin .el-alert { margin-top: 4px; border-radius: 10px; }

/* ---------------- H5 / 平板适配（参考站同款断点） ---------------- */
@media (max-width: 1200px) {
  .lg-title { font-size: 36px; }
  .lg-subtitle { font-size: 15px; }
  .lg-logo-header { margin-bottom: 40px; }
  .lg-brand-text { font-size: 20px; }
  .lg-brand-mark { width: 44px; height: 44px; border-radius: 13px; }
  .lg-brand-mark svg { width: 26px; height: 26px; }
  .lg-content { padding: 40px 60px; }
}

@media (max-width: 900px) {
  /* H5：隐藏品牌区，表单区撑满单列 */
  .lg-page { background: #fff; }
  .lg-left { display: none; }
  .lg-right,
  .lg-reg { padding: 30px 24px; min-width: auto; }
  .lg-form-wrap,
  .lg-reg .el-form { max-width: 100%; }
  .lg-signin .el-input__wrapper { height: 48px; }
  .lg-signin .el-button--primary { height: 48px; }
  .lg-signin .captcha-img { flex: 0 0 104px; width: 104px; height: 40px; }
  .lg-code-row .el-button { height: 48px; width: 118px; }
  .lg-login-logo { margin-bottom: 22px; }
  .lg-login-logo .lg-brand-text { font-size: 22px; }
  .lg-form-title { font-size: 22px; }
  .lg-form-sub { margin-bottom: 28px; }
  .lg-desc { margin-top: 20px; }
}

@media (max-width: 480px) {
  .lg-right, .lg-reg { padding: 24px 18px; }
  .lg-form-title { font-size: 20px; }
  .lg-login-logo .lg-brand-text { font-size: 20px; }
  .lg-signin .el-form-item { margin-bottom: 18px; }
  .lg-signin .el-checkbox:last-of-type { margin-left: 0; }
  .lg-login-logo { gap: 10px; }
}
