.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 72px;
  position: relative;
}

.auth-shell::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  top: 10%; left: 10%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  background: var(--tw-surface);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-r-lg);
  box-shadow: var(--tw-glow);
  position: relative;
}

.auth-logo {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-secondary));
  color: #041018;
  font-family: var(--tw-mono);
  font-weight: 700;
  margin-bottom: 20px;
}

.auth-card h1 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.02em; }
.auth-desc { margin: 0 0 24px; color: var(--tw-muted); font-size: 0.9rem; }

.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-label { font-size: 0.8125rem; font-weight: 600; color: var(--tw-muted); margin-top: 4px; }

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--tw-r);
  border: 1px solid var(--tw-line-2);
  background: var(--tw-surface-2);
  color: var(--tw-text);
  font: inherit;
  font-size: 0.9375rem;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--tw-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.auth-btn { width: 100%; margin-top: 8px; }
.auth-error { color: var(--tw-danger); font-size: 0.875rem; margin: 4px 0 0; }
.auth-success { color: var(--tw-success); font-size: 0.875rem; margin: 4px 0 0; }
.auth-hint { margin: 4px 0 0; font-size: 0.78rem; color: var(--tw-subtle); }
.auth-referral-banner {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tw-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tw-accent) 28%, transparent);
  font-size: 0.875rem;
  color: var(--tw-text);
}
.auth-referral-banner strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tw-subtle); margin-bottom: 2px; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--tw-subtle); font-size: 0.8125rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--tw-line);
}

.auth-google-btn {
  width: 100%;
  min-height: 44px;
  border-radius: var(--tw-r);
  border: 1px solid var(--tw-line-2);
  background: var(--tw-surface-2);
  color: var(--tw-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-google-btn:hover { border-color: var(--tw-primary); }

.auth-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.auth-label-row .auth-label { margin-top: 0; }

.auth-forgot-link {
  font-size: 0.8rem;
  color: var(--tw-primary);
  text-decoration: none;
  white-space: nowrap;
}
.auth-forgot-link:hover { text-decoration: underline; }

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.auth-password-wrap input {
  padding-right: 4.5rem;
}

.auth-password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--tw-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-password-toggle:hover { color: var(--tw-primary); }

.auth-foot { margin: 20px 0 0; text-align: center; font-size: 0.875rem; color: var(--tw-muted); }

.auth-legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--tw-muted);
  cursor: pointer;
}

.auth-legal-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--tw-primary);
  cursor: pointer;
}

.auth-legal-check a {
  color: var(--tw-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-legal-check a:hover { color: var(--tw-text); }

@media (max-width: 768px) {
  .auth-shell { align-items: flex-start; padding-top: 24px; }
}
