:root {
    --primary: #5b4ae0;
    --primary-dark: #3d2ec2;
    --accent: #f4726b;
    --bg: #f8f9fe;
    --card-bg: rgba(255, 255, 255, 0.92);
    --text: #2d2f45;
    --text-light: #6b7199;
    --radius: 18px;
    --shadow: 0 8px 32px rgba(91, 74, 224, 0.08);
  }

  * { box-sizing: border-box; }

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #eef0fd 0%, #f5f7ff 40%, #fdf2f8 100%);
    min-height: 100vh;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
  }

  /* ====== Hero Section ====== */
  .hero-section {
    padding: 60px 40px 32px;
    max-width: 520px;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(91, 74, 224, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
  }

  .hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
  }

  .hero-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(91, 74, 224, 0.25);
  }

  .hero-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
  }

  .hero-title span {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 36px;
  }

  .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(91, 74, 224, 0.35);
    transition: all 0.3s ease;
    border: none; cursor: pointer;
  }

  .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(91, 74, 224, 0.45);
    color: #fff;
  }

  .hero-btn::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s;
  }

  .hero-btn:hover::after { transform: translateX(4px); }

  /* ====== Feature Pills ====== */
  .features-row {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 32px;
  }

  .feature-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-light);
    background: rgba(255,255,255,0.7);
    padding: 8px 16px; border-radius: 100px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(91,74,224,0.06);
  }

  .feature-pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
  }

  /* ====== Auth Card ====== */
  .auth-wrapper {
    display: flex; align-items: center; justify-content: center;
    min-height: 90vh; padding: 24px;
  }

  .auth-card {
    width: 100%; max-width: 400px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(91, 74, 224, 0.06);
    overflow: hidden;
  }

  .auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .auth-tab {
    flex: 1; text-align: center;
    padding: 18px 0;
    font-size: 15px; font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    background: none; border: none;
  }

  .auth-tab.active {
    color: var(--primary);
  }

  .auth-tab.active::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 3px;
    background: var(--primary); border-radius: 3px 3px 0 0;
  }

  .auth-body { padding: 28px 32px 32px; }

  .auth-panel { display: none; }
  .auth-panel.active { display: block; }

  .input-group {
    position: relative; margin-bottom: 16px;
  }

  .input-group .input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 17px; color: #b4b8d4; z-index: 1;
  }

  .input-group input {
    width: 100%; height: 48px;
    padding: 0 16px 0 42px;
    font-size: 14px;
    background: #f5f6fc;
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text);
    outline: none;
    transition: all 0.3s;
    line-height: 48px;
  }

  .input-group input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91,74,224,0.08);
  }

  .captcha-row { display: flex; gap: 10px; }
  .captcha-row .input-group { flex: 1; margin-bottom: 0; }
  .captcha-img {
    height: 48px; border-radius: 12px; cursor: pointer;
    border: 2px solid transparent; transition: border 0.3s;
  }
  .captcha-img:hover { border-color: var(--primary); }

  .btn-submit {
    width: 100%; height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
    font-size: 15px; font-weight: 600;
    border: none; border-radius: 12px;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(91,74,224,0.3);
    transition: all 0.3s;
  }

  .btn-submit:hover {
    box-shadow: 0 8px 24px rgba(91,74,224,0.45);
    transform: translateY(-1px);
  }

  /* ====== Links Section ====== */
  .links-section {
    max-width: 620px; padding: 0 40px 40px;
  }

  .links-title {
    font-size: 14px; font-weight: 600; color: var(--text-light);
    margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase;
  }

  .links-list {
    display: flex; flex-wrap: wrap; gap: 8px;
  }

  .links-list a {
    font-size: 12px; color: var(--text-light);
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    transition: all 0.3s;
  }

  .links-list a:hover {
    color: var(--primary);
    background: #fff;
    border-color: rgba(91,74,224,0.15);
  }

  /* ====== Footer ====== */
  .page-footer {
    text-align: center;
    padding: 24px; color: #b4b8d4;
    font-size: 12px;
  }

  /* ====== Responsive ====== */
  @media (max-width: 768px) {
    .hero-section { padding: 40px 24px 24px; max-width: 100%; }
    .hero-title { font-size: 30px; }
    .hero-desc { font-size: 14px; }
    .hero-btn { font-size: 14px; padding: 12px 24px; }
    .links-section { padding: 0 24px 32px; }
    .auth-card { max-width: 100%; }
  }

  .auth-links {
    margin-top: 16px;
    margin-left: 10px;
  }