/* ===== 登录/注册页面样式 ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #FFF8F0 0%, #F0F4FF 50%, #FFF5F5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo .emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}
.auth-logo h2 {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B35, #4F46E5, #DC2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #F1F5F9;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.auth-tab.active {
  color: #4F46E5;
  border-bottom-color: #4F46E5;
}

/* Form */
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #1E293B;
  background: #F8FAFC;
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus {
  border-color: #4F46E5;
  background: #fff;
}

.btn-auth {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}
.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
}
.btn-auth:active {
  transform: scale(0.97);
}
.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-msg {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 20px;
}
.auth-msg.error { color: #DC2626; }
.auth-msg.success { color: #10B981; }

.auth-back {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.85rem;
}
.auth-back:hover {
  color: #4F46E5;
}
