/* Auth-SDK 登录页样式 - 暗黑风格 (匹配 ai.jianliao.cc) */
@font-face {
  font-family: 'OPPO Sans';
  src: url('https://ai.jianliao.cc/ziliao/fonts/OPPO%20Sans%204.0.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'OPPO Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000;
  color: #f5f5f7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
/* 背景光效 */
body::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(42,219,92,0.12) 0%, transparent 70%);
  top: -15%; left: -10%;
  border-radius: 50%;
  pointer-events: none;
}
body::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,159,10,0.08) 0%, transparent 70%);
  bottom: -10%; right: -8%;
  border-radius: 50%;
  pointer-events: none;
}
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 20px;
}
.auth-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.auth-logo {
  display: block;
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
}
.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 4px;
}
.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: #86868b;
  margin-bottom: 28px;
}
/* Tabs */
.tabs {
  display: flex;
  background: #0a0a0a;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #86868b;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active {
  background: #2a2a2a;
  color: #f5f5f7;
  font-weight: 500;
}
/* Form */
.form-group { margin-bottom: 14px; }
.form-group input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #f5f5f7;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder { color: #555; }
.form-group input:focus { border-color: #2ADB5C; }
.btn-primary {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #2ADB5C;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 6px;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  width: 100%;
  height: 42px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: transparent;
  color: #86868b;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
}
.btn-secondary:hover { border-color: #3a3a3a; color: #f5f5f7; }
/* Messages */
.msg {
  font-size: 13px;
  min-height: 20px;
  margin-top: 10px;
  text-align: center;
}
.msg.error { color: #ff453a; }
.msg.success { color: #2ADB5C; }
/* User Info Panel */
.user-panel {
  text-align: center;
}
.user-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ADB5C, #1a9e3f);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: #000;
  font-weight: 700;
}
.user-name {
  font-size: 20px;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 4px;
}
.user-tag {
  display: inline-block;
  background: rgba(42,219,92,0.15);
  color: #2ADB5C;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.user-meta {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 4px;
}
.user-meta span { color: #f5f5f7; }
/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #555;
}
/* Responsive */
@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; border-radius: 16px; }
  .auth-title { font-size: 20px; }
}
