/* auth.css - 登录/注册页面专属样式 */

html, body { height: 100%; overflow-x: hidden; }

/* 全屏分栏布局 */
.auth-page { min-height: 100vh; display: flex; }
.auth-left { flex: 1; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
.auth-left::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.auth-right { flex: 1; background: #f8fafc; display: flex; flex-direction: column; justify-content: center; padding: 2rem 3rem; position: relative; }

/* 浮动粒子 */
.particle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.1); } }

/* 左侧玻璃卡片 */
.glass-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 2rem; position: relative; z-index: 10; }

/* 表单卡片 */
.form-card { background: white; border-radius: 20px; padding: 2.5rem; box-shadow: 0 4px 24px rgba(30,58,138,0.08); border: 1px solid #f1f5f9; width: 100%; max-width: 440px; margin: 0 auto; }

/* 输入框 */
.input-group { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 0.9rem; }
.input-field { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 0.9rem; outline: none; transition: all 0.3s; background: #fff; color: #1f2937; }
.input-field:focus { border-color: #1e3a8a; box-shadow: 0 0 0 3px rgba(30,58,138,0.08); }
.input-field.is-invalid { border-color: #ef4444; }

/* 密码显隐 */
.toggle-pwd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; cursor: pointer; background: none; border: none; padding: 4px; font-size: 0.9rem; }

/* 选项卡 */
.auth-tab { flex: 1; padding: 10px; text-align: center; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; font-weight: 500; color: #64748b; border-radius: 10px; border: none; background: transparent; }
.auth-tab.active { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: white; box-shadow: 0 4px 12px rgba(30,58,138,0.2); }

/* 主按钮 */
.btn-primary { width: 100%; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: white; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s; font-size: 0.95rem; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(30,58,138,0.3); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* 验证码按钮 */
.btn-code { padding: 0 14px; height: 36px; border-radius: 8px; border: 1px solid #1e3a8a; color: #1e3a8a; background: white; font-size: 0.75rem; cursor: pointer; transition: all 0.3s; white-space: nowrap; font-weight: 500; }
.btn-code:hover:not(:disabled) { background: #1e3a8a; color: white; }
.btn-code:disabled { border-color: #cbd5e1; color: #94a3b8; cursor: not-allowed; }

/* 底部链接 */
.footer-link { color: #94a3b8; font-size: 0.8rem; transition: color 0.3s; text-decoration: none; }
.footer-link:hover { color: #06b6d4; }

/* Toast 位置覆盖 */
.toast-container { position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 9999; opacity: 0; transition: all 0.4s ease; pointer-events: none; }
.toast-container.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-box { padding: 14px 28px; border-radius: 12px; color: #fff; font-size: 0.95rem; box-shadow: 0 10px 40px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; backdrop-filter: blur(12px); }
.toast-info { background: rgba(30,58,138,0.92); }
.toast-success { background: rgba(21,128,61,0.92); }
.toast-error { background: rgba(185,28,28,0.92); }

/* 分割线 */
.line-divider { display: flex; align-items: center; gap: 1rem; color: #94a3b8; font-size: 0.8rem; margin: 1.25rem 0; }
.line-divider::before, .line-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

/* 表单面板切换 */
.form-panel { transition: all 0.4s ease; }
.form-panel.hidden { display: none; }

/* 响应式 */
@media (max-width: 1023px) {
  .auth-page { flex-direction: column; }
  .auth-left { min-height: 280px; padding: 2rem; }
  .auth-right { padding: 2rem 1.5rem; }
  .form-card { max-width: 100%; }
}
@media (max-width: 640px) {
  .auth-left { display: none; }
  .auth-right { padding: 1.5rem; min-height: 100vh; justify-content: flex-start; padding-top: 3rem; }
}
