/* ========================================
   白云经脉宝互联网医院 - 登录注册页面样式
   主题色：绿色系（匹配主站风格）
   ======================================== */

/* ========== CSS 变量 ========== */
:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --accent: #FF8F00;
  --white: #ffffff;
  --bg-light: #f8faf8;
  --bg-green-light: #e8f5e9;
  --text-dark: #2c3e50;
  --text-gray: #666;
  --text-light: #999;
  --border: #e0e0e0;
  --danger: #e74c3c;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 30%, #a5d6a7 70%, #81c784 100%);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46,125,50,0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,143,0,0.04) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: none; }

/* ========== 顶部导航 ========== */
.auth-header {
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.auth-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-logo img {
  height: 40px;
  width: auto;
}
.auth-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}
.auth-nav {
  display: flex;
  gap: 28px;
}
.auth-nav a {
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.auth-nav a:hover {
  color: var(--primary);
}
.auth-nav a i {
  font-size: 15px;
}

/* ========== 主区域 ========== */
.auth-section {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 40px 20px;
}

.auth-container {
  display: flex;
  max-width: 1000px;
  width: 100%;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* ========== 左侧品牌区 ========== */
.auth-brand {
  width: 420px;
  background: linear-gradient(160deg, #1B5E20 0%, #2E7D32 40%, #388E3C 100%);
  padding: 60px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* 装饰圆 */
.auth-brand::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.auth-brand-logo {
  position: relative;
  z-index: 1;
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.auth-brand-logo img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.auth-brand h2 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.auth-brand p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.auth-features {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: left;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-feature-item i {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ========== 右侧表单区 ========== */
.auth-form-wrap {
  flex: 1;
  padding: 50px 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-header {
  margin-bottom: 36px;
}

.auth-form-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.auth-form-header p {
  font-size: 14px;
  color: var(--text-light);
}

.auth-switch {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 28px;
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
  margin-left: 4px;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ========== 表单元素 ========== */
.auth-form-group {
  margin-bottom: 22px;
  position: relative;
}

.auth-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition);
}

.auth-input-wrap input[type="text"],
.auth-input-wrap input[type="password"],
.auth-input-wrap input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
}

.auth-input-wrap input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(46,125,50,0.08);
}

.auth-input-wrap input:focus ~ .auth-input-icon,
.auth-input-wrap input:focus + .auth-input-icon {
  color: var(--primary);
}

/* 密码可见切换 */
.auth-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 15px;
  padding: 6px;
  z-index: 2;
  transition: var(--transition);
}
.auth-pwd-toggle:hover {
  color: var(--text-gray);
}

/* 验证码行 */
.auth-captcha-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.auth-captcha-row .auth-input-wrap {
  flex: 1;
}

.auth-captcha-img {
  flex-shrink: 0;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.auth-captcha-img:hover {
  border-color: var(--primary);
}
.auth-captcha-img img {
  height: 100%;
  width: auto;
  display: block;
}
.auth-captcha-refresh {
  flex-shrink: 0;
  height: 50px;
  padding: 0 14px;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}
.auth-captcha-refresh:hover {
  background: var(--bg-green-light);
  border-color: var(--primary);
}

/* 短信验证码行 */
.auth-sms-row {
  display: flex;
  gap: 12px;
}

.auth-sms-row .auth-input-wrap {
  flex: 1;
}

.auth-sms-btn {
  flex-shrink: 0;
  height: 50px;
  padding: 0 20px;
  background: var(--white);
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.auth-sms-btn:hover {
  background: var(--bg-green-light);
}
.auth-sms-btn:disabled {
  border-color: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
  background: var(--bg-light);
}

/* 密码强度指示器 */
.auth-pwd-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-pwd-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.auth-pwd-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0;
}

.auth-pwd-strength-text {
  font-size: 12px;
  color: var(--text-light);
  min-width: 40px;
}

/* 强度等级颜色 */
.pwd-level-1 .auth-pwd-strength-fill { width: 25%; background: #e74c3c; }
.pwd-level-2 .auth-pwd-strength-fill { width: 50%; background: #f39c12; }
.pwd-level-3 .auth-pwd-strength-fill { width: 75%; background: #3498db; }
.pwd-level-4 .auth-pwd-strength-fill { width: 100%; background: #27ae60; }

/* 复选框行 */
.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--text-gray);
}

.auth-check-row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.auth-check-row a {
  color: var(--primary);
  font-weight: 600;
}

.auth-check-row a:hover {
  text-decoration: underline;
}

/* 选项行（记住密码 + 忘记密码） */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-gray);
  cursor: pointer;
}

.auth-remember input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.auth-forgot {
  color: var(--primary);
  font-weight: 600;
}

.auth-forgot:hover {
  text-decoration: underline;
}

/* 提交按钮 */
.auth-submit-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(46,125,50,0.3);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46,125,50,0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* 错误提示 */
.auth-error-msg {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  color: var(--danger);
  font-size: 13px;
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.auth-error-msg i {
  font-size: 16px;
  flex-shrink: 0;
}

/* ========== 响应式 ========== */

/* 平板 */
@media (max-width: 991px) {
  .auth-container {
    flex-direction: column;
    max-width: 480px;
  }
  .auth-brand {
    width: 100%;
    padding: 40px 30px;
  }
  .auth-brand-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
  }
  .auth-brand h2 {
    font-size: 22px;
  }
  .auth-features {
    display: none;
  }
  .auth-form-wrap {
    padding: 40px 35px;
  }
}

/* 手机 */
@media (max-width: 767px) {
  .auth-header-inner {
    height: 58px;
  }
  .auth-logo span {
    font-size: 16px;
  }
  .auth-nav {
    gap: 16px;
  }
  .auth-nav a {
    font-size: 13px;
  }
  .auth-section {
    padding: 20px 16px;
  }
  .auth-container {
    border-radius: 16px;
    max-width: 100%;
  }
  .auth-brand {
    padding: 30px 25px;
  }
  .auth-brand h2 {
    font-size: 20px;
  }
  .auth-brand p {
    margin-bottom: 0;
  }
  .auth-form-wrap {
    padding: 30px 25px;
  }
  .auth-form-header h3 {
    font-size: 21px;
  }
  .auth-submit-btn {
    height: 48px;
    font-size: 15px;
  }
  .auth-captcha-row {
    flex-wrap: wrap;
  }
}

/* 小屏 */
@media (max-width: 480px) {
  .auth-header-inner {
    height: 52px;
  }
  .auth-nav a span {
    display: none;
  }
  .auth-nav a i {
    font-size: 18px;
  }
  .auth-nav {
    gap: 14px;
  }
  .auth-brand {
    padding: 24px 20px;
  }
  .auth-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }
  .auth-brand h2 {
    font-size: 18px;
  }
  .auth-brand p {
    font-size: 12px;
  }
  .auth-form-wrap {
    padding: 24px 18px;
  }
  .auth-form-header h3 {
    font-size: 19px;
  }
  .auth-input-wrap input {
    height: 46px;
    font-size: 13px;
  }
  .auth-submit-btn {
    height: 46px;
    font-size: 14px;
  }
  .auth-sms-btn {
    height: 46px;
    padding: 0 14px;
    font-size: 12px;
  }
  .auth-captcha-img,
  .auth-captcha-refresh {
    height: 46px;
  }
}
