/* 汉雅星空 - 登录/注册页面样式（蓝色科技风） */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.auth-body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #06193b 0%, #0a2d6e 40%, #0d47a1 75%, #062a5c 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 科技感背景纹理 */
.auth-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 160, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.auth-body::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(0, 174, 239, .28), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
}

.tech-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, .25);
  pointer-events: none;
}

.tech-orb.o1 {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -120px;
}

.tech-orb.o2 {
  width: 240px;
  height: 240px;
  left: -60px;
  bottom: -60px;
  border-style: dashed;
}

.tech-gear {
  position: absolute;
  width: 130px;
  height: 130px;
  right: 8%;
  bottom: 6%;
  opacity: .18;
  background: repeating-conic-gradient(#8fd0ff 0deg 8deg, transparent 8deg 18deg);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 24s linear infinite;
}

.tech-gear::after {
  content: "";
  position: absolute;
  inset: 32px;
  background: #0a2d6e;
  border-radius: 50%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 顶部返回官网 */
.auth-back {
  position: absolute;
  top: 26px;
  left: 34px;
  z-index: 5;
  color: #cfe6ff;
  font-size: 14px;
  text-decoration: none;
}

.auth-back:hover {
  color: #fff;
}

.auth-back span {
  margin-right: 6px;
}

/* 卡片 */
.auth-card {
  position: relative;
  z-index: 3;
  width: 480px;
  max-width: 92vw;
  /* padding: 36px 40px 40px; */
  /* background: rgba(6, 28, 66, .72);
  border: 1px solid rgba(120, 190, 255, .28);
  border-radius: 8px; */
  /* box-shadow: 0 24px 70px rgba(0, 0, 0, .45), inset 0 0 40px rgba(0, 174, 239, .06);
  backdrop-filter: blur(6px); */
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-logo img {
  height: 34px;
}

.auth-logo .logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

.auth-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: .5px;
}

.auth-subtitle {
  color: #8fb8e8;
  font-size: 12px;
  text-align: center;
  margin: 0 0 26px;
}

/* 表单：label 与输入框同一行水平排列 */
.auth-form .field {
  margin-bottom: 14px;
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form label {
  flex: 0 0 100px;
  width: 100px;
  margin: 0 12px 0 0;
  color: #a9cdf5;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.auth-form .field>input,
.auth-form .field>.captcha-field {
  flex: 1;
  min-width: 0;
}

.auth-form .field.captcha-row {
  margin-bottom: 26px;
}

/* 密码框 + 眼睛按钮 */
.pw-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.pw-wrap input {
  padding-right: 46px;
}

/* 眼睛图标按钮（注册/登录/忘记密码共用） */
.pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fa8d8;
}

.pw-eye:hover {
  color: #00AEEF;
}

.pw-eye::before {
  content: "";
  width: 19px;
  height: 19px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.pw-eye.is-open::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(140, 195, 255, .35);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: .2s;
}

.auth-form input::placeholder {
  color: #6f93bf;
}

.auth-form input:focus {
  border-color: #00AEEF;
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, .15);
}

.auth-btn {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: linear-gradient(90deg, #00AEEF, #0288d1);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  transition: .2s;
}

.auth-btn:hover {
  background: linear-gradient(90deg, #02b6f5, #0392dc);
}

.auth-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.auth-msg {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
}

.auth-msg.error {
  color: #ff8a80;
}

.auth-msg.success {
  color: #69f0ae;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
}

.auth-links a {
  color: #7fc4ff;
  text-decoration: none;
}

.auth-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* 忘记密码页辅助信息 */
.auth-hint {
  color: #8fb8e8;
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0 20px;
  padding: 10px 12px;
  background: rgba(0, 174, 239, .08);
  border-left: 2px solid #00AEEF;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 24px 32px;
  }

  .auth-title {
    font-size: 12px;
  }
}

/* 图形验证码 */
.captcha-field {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.captcha-field input {
  flex: 1;
  min-width: 0;
  width: auto;
}

.captcha-field .input-wrap {
  flex: 1;
  min-width: 0;
}

.captcha-img {
  width: 132px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(140, 195, 255, .35);
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  object-fit: cover;
}

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

.captcha-tip {
  position: absolute;
  left: 112px;
  bottom: -13px;
  color: #6f93bf;
  font-size: 11px;
  white-space: nowrap;
}