:root {
      --border: #e5e7eb;
      --radius-sm: 10px;
      --text-muted: #9ca3af;
      --text-secondary: #6b7280;
      --text-primary: #1f2937;
      --primary-bg: #f0fdf4;
      --primary: #22c55e;
      --primary-dark: #16a34a;
      --shadow: 0 2px 8px rgba(22,163,74,0.1);
      --text-light: #d1d5db;
    }

    * { box-sizing: border-box; }

    .auth-page {
      max-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 80px 20px 40px;
      position: relative;
      overflow: hidden;
      background: #f0fdf4;
    }

    /* === 数码感浅色背景 === */
    .auth-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background-color: #f0fdf4;
      overflow: hidden;
    }

    /* 角落装饰光圈 */
    .auth-bg::before {
      content: '';
      position: absolute;
      width: 500px; height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(134,239,172,0.15) 0%, transparent 70%);
      top: -150px; left: -150px;
    }
    .auth-bg::after {
      content: '';
      position: absolute;
      width: 400px; height: 400px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(34,197,94,0.1) 0%, transparent 70%);
      bottom: -100px; right: -100px;
    }

    /* === 居中卡片 === */
    .auth-card {
      position: relative;
      z-index: 1;
      width: 420px;
      max-width: 100%;
		height: 551px;
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(22,163,74,0.12), 0 1px 3px rgba(0,0,0,0.05);
      border: 1px solid rgba(255,255,255,0.8);
      padding: 48px 36px 40px;
    }

    /* ========== Tab 统一等高修复 ========== */
    .auth-tabs {
      display: flex !important;
      gap: 8px !important;
      margin-bottom: 28px !important;
    }
    .auth-tabs .auth-tab {
      flex: 1 1 0% !important;
      height: 48px !important;
      min-height: 48px !important;
      max-height: 48px !important;
      line-height: 1 !important;
      margin: 0 !important;
      padding: 0 !important;
      border: none !important;
      border-radius: 12px !important;
      background: transparent !important;
      color: var(--text-secondary) !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
/*      transition: all 0.2s !important;*/
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
      box-sizing: border-box !important;
    }
    .auth-tabs .auth-tab.active {
      border: 1px solid #22c55e !important;
/*      color: #fff !important;*/
/*      box-shadow: 0 4px 12px rgba(34,197,94,0.25) !important;*/
    }
    .auth-tab .tab-icon {
      font-size: 16px !important;
      line-height: 1 !important;
    }

    /* === 表单通用输入框容器（全部统一48px） === */
    .auth-form-group { margin-bottom: 20px; }
    .auth-form-group label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 8px;
      color: var(--text-primary);
    }

    .input-wrapper {
      display: flex;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      background: rgba(255,255,255,0.7);
      transition: all 0.2s;
      height: 48px;
    }
    .input-wrapper:focus-within {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
    }

    .phone-prefix {
      display: flex; align-items: center;
      padding: 0 14px;
      background: rgba(240,253,244,0.5);
      border-right: 1px solid var(--border);
      font-size: 14px; font-weight: 500;
      color: var(--text-primary);
      gap: 4px; cursor: pointer; user-select: none;
      white-space: nowrap;
      height: 48px;
    }

    .input-wrapper input {
      flex: 1;
      height: 48px;
      padding: 0 16px;
      border: none;
      font-size: 15px;
      outline: none;
      font-family: inherit;
      letter-spacing: 0.5px;
      background: transparent;
    }
    .input-wrapper input::placeholder { color: var(--text-light); }

    /* 密码输入框单独容器 */
    .pwd-wrapper { 
      position: relative; 
      width: 100%;
      height: 48px;
    }
    .pwd-wrapper input {
      width: 100%;
      height: 48px;
      padding: 0 48px 0 16px;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 15px;
      outline: none;
      background: rgba(255,255,255,0.7);
      transition: all 0.2s;
    }
    .pwd-wrapper input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
    }
    .pwd-toggle {
      position: absolute;
      right: 14px; top: 50%; transform: translateY(-50%);
      background: none; border: none; cursor: pointer;
      color: var(--text-muted); font-size: 18px;
      padding: 4px;
      transition: color 0.2s;
    }
    .pwd-toggle:hover { color: var(--primary); }

    /* ========== 修复验证码行 统一容器+高度对齐 ========== */
    .captcha-row {
      display: flex;
      gap: 12px;
      align-items: center;
      width: 100%;
    }
#pwdToggleBtn img {width: 32px;height:32px;}
.tab-icon img {width: 20px;height:20px;}
    /* 验证码输入框复用统一input-wrapper样式 */
    .captcha-input-wrap {
      flex: 1;
      display: flex;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      background: rgba(255,255,255,0.7);
      height: 48px;
    }
    .captcha-input-wrap input {
      flex: 1;
      height: 48px;
      padding: 0 16px;
      border: none;
      font-size: 15px;
      outline: none;
      background: transparent;
    }
    .captcha-input-wrap:focus-within {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
    }
    /* 验证码图片和输入框等高48px，圆角统一 */
    .captcha-row img#random {
      width: 90px;
      border: 1.5px solid var(--border);
      cursor: pointer;
      object-fit: cover;
    }

    /* 验证码登录模块 */
    .code-input-wrapper {
      display: flex;
      gap: 12px;
    }
    .code-input-wrapper input {
      flex: 1;
      height: 48px;
      padding: 0 16px;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 15px;
      outline: none;
      transition: all 0.2s;
      font-family: inherit;
      letter-spacing: 2px;
      background: rgba(255,255,255,0.7);
    }
    .code-input-wrapper input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
    }

    .send-code-btn {
      width: 130px;
      height: 48px;
      flex-shrink: 0;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
      white-space: nowrap;
    }
    .send-code-btn:hover { background: var(--primary-dark); }
    .send-code-btn:disabled { background: #d1d5db; cursor: not-allowed; color: #9ca3af; }

    /* 协议 */
    .auth-agreement {
      display: flex; align-items: flex-start; gap: 8px;
      margin-bottom: 24px;
    }
    .auth-agreement input[type="checkbox"] {
      width: 16px; height: 16px; margin-top: 2px;
      accent-color: var(--primary); flex-shrink: 0;
    }
    .auth-agreement label {
      font-size: 13px; color: var(--text-secondary); line-height: 1.5;
    }
    .auth-agreement label a { color: var(--primary); }

    /* 提交按钮 */
    .auth-submit-btn {
      width: 100%; height: 50px;
      background: var(--primary); color: #fff;
      border: none; border-radius: 10px;
      font-size: 16px; font-weight: 600;
      cursor: pointer; transition: all 0.2s;
      font-family: inherit; letter-spacing: 0.5px;
    }
    .auth-submit-btn:hover {
      background: var(--primary-dark);
      box-shadow: 0 4px 12px rgba(34,197,94,0.3);
    }
    .auth-submit-btn:disabled {
      background: #d1d5db; cursor: not-allowed; box-shadow: none;
    }

    /* 提示 */
    .auth-tips {
      margin-top: 20px;
      padding: 12px 16px;
      background: rgba(240,253,244,0.8);
      border-radius: 8px;
      font-size: 12px;
      color: var(--primary-dark);
      display: flex; align-items: center; gap: 8px;
      line-height: 1.5;
    }

    /* 面板切换 */
    .auth-panel { display: none; }
    .auth-panel.active { display: block; }

    /* 扫码样式 */
    .scan-qrcode-wrap {
      text-align: center;
      padding: 20px 0;
    }
    .qrcode-box {
      width: 220px;
      height: 220px;
      margin: 20px auto;
      border-radius: 12px;
      overflow: hidden;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
    }
    .qrcode-box img#ewmImg {
      width: 100%;
      height: 100%;
      object-fit: cover;
      cursor: pointer;
    }
    .scan-tip {
      color: #666666;
      font-size: 14px;
      margin: 0;
    }
    .scan-tip.sub {
      margin-top: 8px;
      color: #999999;
      font-size: 13px;
    }

    /* 国家下拉 */
    .country-dropdown-mask {
      position: fixed;
      inset: 0;
      z-index: 99;
      background: transparent;
      display: none;
      pointer-events: none !important;
    }
    .country-dropdown-box {
      position: fixed;
      width: 260px;
      max-height: 320px;
      background: #fff;
      border-radius: 10px;
      border: 1.5px solid var(--border);
      box-shadow: var(--shadow-xl);
      z-index: 100000;
      overflow: hidden;
      display: none;
    }
    .country-list {
      max-height: 320px;
      overflow-y: auto;
    }
    .country-item {
      padding: 9px 12px;
      font-size: 13px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: background 0.15s;
      cursor: pointer;
    }
    .country-item:hover {
      background: var(--primary-bg);
    }
    .country-item.active {
      background: var(--primary-bg);
      color: var(--primary-dark);
      font-weight: 500;
    }
    .country-tel {
      color: var(--text-muted);
    }

    @media (max-width: 480px) {
      .auth-card { padding: 32px 24px; box-shadow: none; border-radius: 16px; }
      .code-input-wrapper { flex-direction: column; }
      .send-code-btn { width: 100%; }
    }
    * { box-sizing: border-box; }

    .auth-page {
      max-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 80px 20px 40px;
      position: relative;
      overflow: hidden;
      background: #f0fdf4;
	 height: 100vh;
    }

    /* === 数码感浅色背景 === */
    .auth-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
	  
	background: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(248, 255, 254, .4) 50%, transparent 100%), url(/templates/default/images/bg.jpg) no-repeat center bottom / cover;
	  overflow: hidden;
		
    }
/*  background: url("/templates/default/images/bg.jpg") 100% 100% no-repeat;
background-image:background: url("/templates/default/images/bg-login.png") 100% 100% no-repeat;
        linear-gradient(rgba(34,197,94,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,197,94,0.06) 1px, transparent 1px),
        linear-gradient(rgba(34,197,94,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,197,94,0.04) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(34,197,94,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(22,163,74,0.06) 0%, transparent 50%);
      background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px, 100% 100%, 100% 100%;*/

    /* 飘浮的数码粒子 */
/*
    .auth-particles {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }
    .auth-particles span {
      position: absolute;
      display: block;
      font-size: 12px;
      font-family: 'Courier New', monospace;
      color: rgba(34,197,94,0.12);
      font-weight: 700;
      white-space: nowrap;
      animation: floatUp 20s linear infinite;
    }
    @keyframes floatUp {
      0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
      10%  { opacity: 1; }
      90%  { opacity: 1; }
      100% { transform: translateY(-100px) rotate(10deg); opacity: 0; }
    }
*/

    /* 角落装饰光圈 */
    .auth-bg::before {
      content: '';
      position: absolute;
      width: 500px; height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(134,239,172,0.15) 0%, transparent 70%);
      top: -150px; left: -150px;
    }
    .auth-bg::after {
      content: '';
      position: absolute;
      width: 400px; height: 400px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(34,197,94,0.1) 0%, transparent 70%);
      bottom: -100px; right: -100px;
    }

    /* === 居中卡片 === */
    .auth-card {
      position: relative;
      z-index: 1;
      width: 420px;
      max-width: 100%;
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(22,163,74,0.12), 0 1px 3px rgba(0,0,0,0.05);
      border: 1px solid rgba(255,255,255,0.8);
      padding: 48px 36px 40px;
    }

    /* === 表单 === */
    .auth-form-group { margin-bottom: 20px; }
    .auth-form-group label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 8px;
      color: var(--text-primary);
    }

    .input-wrapper {
      display: flex;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      background: rgba(255,255,255,0.7);
      transition: all 0.2s;
    }
    .input-wrapper:focus-within {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
    }

    .phone-prefix {
      display: flex; align-items: center;
      padding: 0 14px;
      background: rgba(240,253,244,0.5);
      border-right: 1px solid var(--border);
      font-size: 14px; font-weight: 500;
      color: var(--text-primary);
      gap: 4px; cursor: pointer; user-select: none;
      white-space: nowrap;
    }

    .input-wrapper input {
      flex: 1;
      height: 48px;
      padding: 0 16px;
      border: none;
      font-size: 15px;
      outline: none;
      font-family: inherit;
      letter-spacing: 0.5px;
      background: transparent;
    }
    .input-wrapper input::placeholder { color: var(--text-light); }

    /* 密码输入框 */
    .pwd-wrapper { position: relative; }
    .pwd-toggle {
      position: absolute;
      right: 14px; top: 50%; transform: translateY(-50%);
      background: none; border: none; cursor: pointer;
      color: var(--text-muted); font-size: 18px;
      padding: 4px;
      transition: color 0.2s;
    }
    .pwd-toggle:hover { color: var(--primary); }

    /* 验证码 */
    .code-input-wrapper {
      display: flex;
      gap: 12px;
    }
    .code-input-wrapper input {
      flex: 1;
      height: 48px;
      padding: 0 16px;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 15px;
      outline: none;
      transition: all 0.2s;
      font-family: inherit;
      letter-spacing: 2px;
      background: rgba(255,255,255,0.7);
    }
    .code-input-wrapper input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
    }

    .send-code-btn {
      width: 130px;
      height: 48px;
      flex-shrink: 0;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
      white-space: nowrap;
    }
    .send-code-btn:hover { background: var(--primary-dark); }
    .send-code-btn:disabled { background: #d1d5db; cursor: not-allowed; color: #9ca3af; }

    /* 协议 */
    .auth-agreement {
      display: flex; align-items: flex-start; gap: 8px;
      margin-bottom: 24px;
    }
    .auth-agreement input[type="checkbox"] {
      width: 16px; height: 16px; margin-top: 2px;
      accent-color: var(--primary); flex-shrink: 0;
    }
    .auth-agreement label {
      font-size: 13px; color: var(--text-secondary); line-height: 1.5;
    }
    .auth-agreement label a { color: var(--primary); }

    /* 提交按钮 */
    .auth-submit-btn {
      width: 100%; height: 50px;
      background: var(--primary); color: #fff;
      border: none; border-radius: 10px;
      font-size: 16px; font-weight: 600;
      cursor: pointer; transition: all 0.2s;
      font-family: inherit; letter-spacing: 0.5px;
    }
    .auth-submit-btn:hover {
      background: var(--primary-dark);
      box-shadow: 0 4px 12px rgba(34,197,94,0.3);
    }
    .auth-submit-btn:disabled {
      background: #d1d5db; cursor: not-allowed; box-shadow: none;
    }

    /* 提示 */
    .auth-tips {
      margin-top: 20px;
      padding: 12px 16px;
      background: rgba(240,253,244,0.8);
      border-radius: 8px;
      font-size: 12px;
      color: var(--primary-dark);
      display: flex; align-items: center; gap: 8px;
      line-height: 1.5;
    }

    /* 忘记密码 */
    .form-extra {
      display: flex; justify-content: flex-end;
      margin-top: -8px; margin-bottom: 20px;
    }
    .form-extra a {
      font-size: 13px; color: var(--text-muted);
      text-decoration: none; transition: color 0.2s;
    }
    .form-extra a:hover { color: var(--primary); }

    /* 分割线 */
    .auth-divider {
      display: flex; align-items: center; gap: 16px;
      margin: 28px 0;
    }
    .auth-divider::before, .auth-divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }
    .auth-divider span { font-size: 13px; color: var(--text-muted); }

    /* 第三方登录 */
    .auth-other { display: flex; justify-content: center; gap: 24px; }
    .auth-other-btn {
      width: 48px; height: 48px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.7);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; cursor: pointer; transition: all 0.2s;
    }
    .auth-other-btn:hover {
      border-color: var(--primary);
      background: var(--primary-bg);
      box-shadow: var(--shadow);
    }

    /* 面板切换 */
    .auth-panel { display: none; }
    .auth-panel.active { display: block; }

    @media (max-width: 480px) {
      .auth-card { padding: 32px 24px; box-shadow: none; border-radius: 16px; }
      .code-input-wrapper { flex-direction: column; }
      .send-code-btn { width: 100%; }
    }
