/* ===== 匠心艺齿 · 义齿订单管理系统 登录页样式 ===== */
/* 参考站: https://kq.yajiang.cc */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  overflow: hidden;
  background: #0d2b2b;
}

/* ===== 整体布局 ===== */
#app {
  display: flex;
  min-height: 100vh;
  height: 100vh;
}

/* ===== 左侧区域（背景图 + 品牌文案） ===== */
.left-panel {
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
  background: #0d8080;
  /* 圆角在右侧（与表单面板相邻处），参考 kq.yajiang.cc */
  border-radius: 0 16px 16px 0;
}

/* 左侧背景图覆盖层（加深蒙版，确保文字可读） */
.left-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 100, 100, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* ===== Logo 区域 — 左上角（参考 kq.yajiang.cc） ===== */
.brand-logo {
  position: absolute;
  top: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.brand-logo .logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* ===== 左侧主文案 — 居中显示 ===== */
.left-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 40px 60px;
  color: #fff;
  text-align: center;
}

.main-slogan {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  margin-bottom: 48px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
}

.feature-tags {
  display: flex;
  gap: 56px;
  justify-content: center;
}

.feature-tag {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(0, 200, 200, 0.4);
}


/* ===== 右侧表单区域 ===== */
.right-panel {
  flex: 0 0 40%;
  min-width: 360px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 56px;
  position: relative;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
}

.form-container {
  width: 100%;
  max-width: 380px;
}

.form-title {
  font-size: 21px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 36px;
  letter-spacing: 1px;
}

/* ===== 表单分组 ===== */
.form-group {
  margin-bottom: 22px;
}

/* Element Plus label 重置 */
.form-group .el-form-item__label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  padding-bottom: 6px;
  line-height: 1.4;
}

/* Element Plus 输入框自定义 */
.form-group .el-input .el-input__wrapper {
  border-radius: 4px;
  box-shadow: 0 0 0 1px #d0d0d0 inset;
  transition: box-shadow 0.2s;
  padding: 0 14px;
  height: 44px;
}

.form-group .el-input .el-input__wrapper:hover {
  box-shadow: 0 0 0 1px #00b8b8 inset;
}

.form-group .el-input .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #00b8b8 inset;
}

.form-group .el-input .el-input__inner {
  font-size: 14px;
  color: #333;
  height: 44px;
  line-height: 44px;
}

.form-group .el-input .el-input__inner::placeholder {
  color: #c0c0c0;
  font-size: 13px;
}

/* ===== 验证码行 ===== */
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.captcha-row .el-input {
  flex: 1;
}

/* 验证码图片容器 */
.captcha-img-box {
  width: 120px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  background: #eceef0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.captcha-img-box:hover {
  border-color: #00b8b8;
}

/* 验证码图片（模拟验证码素材 + 动态Canvas生成） */
.captcha-img-box .captcha-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captcha-tip {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  text-align: right;
  user-select: none;
}

/* 刷新提示浮层 */
.captcha-img-box::after {
  content: '点击刷新';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.captcha-img-box:hover::after {
  opacity: 1;
}

/* ===== 登录按钮 ===== */
.login-btn-wrap {
  margin-top: 8px;
}

.login-btn {
  width: 100%;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #00b8b8 0%, #009898 100%);
  border: none;
  color: #fff;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0, 184, 184, 0.3);
  cursor: pointer;
}

.login-btn:hover {
  background: linear-gradient(135deg, #00cccc 0%, #00aaaa 100%);
  box-shadow: 0 6px 22px rgba(0, 184, 184, 0.45);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 184, 184, 0.25);
}

/* ===== 底部链接 ===== */
.form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: #999;
}

.form-links .hint-text {
  color: #999;
}

.form-links a {
  color: #00aaa8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.form-links a:hover {
  color: #008888;
  text-decoration: underline;
}

/* ===== 底部版权信息 ===== */
.copyright {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: #c0c0c0;
  line-height: 1.9;
}

.copyright a {
  color: #c0c0c0;
  text-decoration: none;
  transition: color 0.2s;
}

.copyright a:hover {
  color: #00b8b8;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .left-panel {
    display: none;
  }
  .right-panel {
    flex: 1 0 100%;
    min-width: unset;
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .right-panel {
    padding: 32px 16px;
  }
  .form-title {
    font-size: 17px;
  }
}
