/* 登录页 - 蓝白金融风格 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.bgWhite {
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

#app {
  min-height: 100vh;
}

/* 顶部渐变区 */
.login-top {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  overflow: hidden;
}

.login-top::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -40px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}

.login-top::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}

.login-top-content {
  position: relative;
  z-index: 1;
  padding: 60px 0 0;
  text-align: center;
}

/* Logo区域 */
.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-mark {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  margin-bottom: 14px;
  overflow: hidden;
  padding: 6px;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.logo-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.logo-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
}

/* 语言切换 */
.lang-box {
  position: absolute;
  top: 52px;
  right: 20px;
  display: flex;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 14px;
  padding: 2px;
  float: none;
  margin: 0;
  width: auto;
  padding-left: 2px;
  z-index: 10;
}

.lang-box span {
  text-align: center;
  width: 28px;
  height: 26px;
  line-height: 26px;
  color: rgba(255,255,255,0.7);
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-box .lang-active {
  color: #1677ff !important;
  background: #fff !important;
  font-weight: 600;
}

/* 表单区域 */
#login {
  padding: 0;
  margin: 0;
}

.login-form-wrap {
  background: #fff;
  border-radius: 20px 20px 0 0;
  margin-top: -20px;
  position: relative;
  z-index: 2;
  padding: 32px 32px 24px;
}

.theme {
  margin-top: 0;
}

/* 输入框 */
.form-input {
  margin-bottom: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #f5f7fa;
  border: 1.5px solid transparent;
  border-radius: 30px;
  padding: 0 20px;
  height: 46px;
  transition: all 0.25s;
}

.form-input:focus-within {
  border-color: #1677ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.08);
}

.form-input img {
  width: 18px !important;
  height: 18px !important;
  margin-right: 12px;
  flex-shrink: 0;
}

.form-input input {
  flex: 1;
  width: auto !important;
  padding-left: 0 !important;
  background: transparent;
  border: none;
  outline: none;
  color: #1f2937;
  font-size: 14px;
  height: 100%;
}

.form-input input::-webkit-input-placeholder {
  color: #9ca3af !important;
  font-size: 14px !important;
}

.form-input-txt {
  width: auto !important;
}

/* 密码眼睛图标 */
.form-input img[src*="iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 0;
  margin-left: 10px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.form-input img[src*="iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM"]:hover {
  opacity: 1;
}

/* 登录按钮 */
#login .theme .btn-default {
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  color: #fff;
  width: 100%;
  font-size: 15px;
  margin-top: 8px;
  border-radius: 30px;
  height: 46px;
  line-height: 46px;
  border: none;
  outline: none;
  padding: 0;
  font-weight: 600;
  letter-spacing: 4px;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.25);
  transition: all 0.25s;
}

#login .theme .btn-default:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.3);
}

#login .theme .btn-default:active {
  transform: translateY(0);
}

/* 底部链接 */
.nocount {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 14px;
  margin-top: 20px;
  gap: 24px;
}

.nocount > div {
  flex-grow: 0 !important;
  margin-right: 0 !important;
  text-align: center !important;
}

.nocount > div:first-child::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #e5e7eb;
  margin-left: 24px;
  vertical-align: middle;
}

#login .nocount a {
  color: #6b7280;
  font-size: 13px;
  text-decoration: none;
}

/* 隐藏原有占位 */
.header-space {
  display: none;
}

/* 区号选择弹窗 */
.mask-content {
  width: 100vw;
  background-color: #fff;
  border: 1px solid #f1f1f1;
  top: 200px;
  position: absolute;
  left: 0;
  border-radius: 2px;
  height: calc(100vh - 200px);
  z-index: 100;
}

.area-code li {
  line-height: 40px;
  text-align: center;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px !important;
  list-style: none;
}

.area-code li:last-child {
  border: none;
}

.selected img {
  width: 15px;
  height: 15px;
  margin-left: 5px;
  margin-right: 5px;
}

.selected p {
  min-width: 40px;
  text-align: center;
  font-size: 14px;
}

.active {
  color: #1677ff;
}

/* 响应式 */
@media (max-width: 375px) {
  .login-form-wrap {
    padding: 28px 24px 20px;
  }
}
