/* 登录/注册补充样式（PHP 版） */
.auth-page { position: relative; min-height: 100vh; overflow: hidden; }
.auth-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.auth-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.auth-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; }
.auth-blob-a { width: 420px; height: 420px; background: rgba(6,182,212,.35); top: -120px; left: -100px; animation: mk-float 14s ease-in-out infinite; }
.auth-blob-b { width: 460px; height: 460px; background: rgba(139,92,246,.3); bottom: -160px; right: -120px; animation: mk-float 18s ease-in-out infinite reverse; }

.auth-shell { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { position: relative; width: 100%; max-width: 420px; background: rgba(255,255,255,.9); backdrop-filter: blur(18px); border: 1px solid #e5eaf3; border-radius: 20px; padding: 34px 34px 30px; box-shadow: 0 24px 60px rgba(59,130,246,.16); }
.auth-card::before { content:''; position:absolute; top:0;left:0;right:0;height:3px;border-radius:20px 20px 0 0;background:linear-gradient(90deg,#06b6d4,#3b82f6,#8b5cf6); }
.auth-logo { display: inline-flex; margin-bottom: 16px; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-title { font-size: 25px; font-weight: 800; margin: 0 0 8px; background: linear-gradient(135deg,#06b6d4,#3b82f6,#8b5cf6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-desc { font-size: 13.5px; color: #64748b; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.field { position: relative; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin: 0 0 7px; }
.field-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.field-input::placeholder { color: #b0bccf; }
.field-input.no-eye { padding-right: 14px; }
.field-input.is-error { border-color: #ef4444; }
.field-error { font-size: 12px; color: #ef4444; margin-top: 5px; min-height: 0; max-height: 0; overflow: hidden; transition: all .2s; }
.field-error.show { min-height: 16px; max-height: 40px; }
.pwd-toggle { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border: none; background: transparent; color: #94a3b8; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.pwd-toggle svg { width: 18px; height: 18px; }
.pwd-toggle:hover { color: #3b82f6; background: #f1f5ff; }
.pwd-toggle.is-on { color: #3b82f6; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.code-row { display: flex; gap: 10px; }
.code-row .field-input { flex: 1; }
.code-btn { flex-shrink: 0; border: 1px solid #c7d6ff; background: #eef2ff; color: #3b82f6; font-weight: 600; font-size: 13px; border-radius: 12px; padding: 0 14px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.code-btn:hover:not(:disabled) { background: #e0e9ff; }
.code-btn:disabled { color: #94a3b8; background: #f1f5f9; border-color: #e2e8f0; cursor: not-allowed; }
.code-done { display: none; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: #10b981; }
.code-done.show { display: flex; }
.code-done svg { width: 15px; height: 15px; }

.btn-primary { width: 100%; padding: 13px; border: none; border-radius: 13px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; background: linear-gradient(135deg,#06b6d4,#3b82f6,#8b5cf6); box-shadow: 0 8px 22px rgba(59,130,246,.32); transition: transform .25s cubic-bezier(.175,.885,.32,1.275), box-shadow .25s; margin-top: 4px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(59,130,246,.42); }
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; }

.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.auth-remember { display: flex; align-items: center; gap: 6px; color: #64748b; cursor: pointer; }
.auth-forgot { color: #3b82f6; text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #b0bccf; font-size: 12px; margin: 20px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e5eaf3; }
.auth-third { display: flex; justify-content: center; gap: 18px; }
.third-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #e5eaf3; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .25s cubic-bezier(.175,.885,.32,1.275), box-shadow .2s; }
.third-btn svg { width: 23px; height: 23px; }
.third-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15,23,42,.1); }
.third-btn.wechat { color: #07c160; }
.third-btn.qq { color: #12b7f5; }
.auth-foot { text-align: center; font-size: 13.5px; color: #64748b; margin: 22px 0 0; }
.auth-foot a { color: #3b82f6; font-weight: 600; text-decoration: none; }
.auth-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #64748b; line-height: 1.7; }
.auth-agree a { color: #3b82f6; text-decoration: none; }
@media (max-width: 480px) { .auth-card { padding: 28px 22px; } .field-row { grid-template-columns: 1fr; } }
