:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glass-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.field-shell {
  position: relative;
}

.field-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-shell:focus-within::after {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.field-base {
  width: 100%;
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0.95rem 1rem;
  outline: none;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.field-base::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

.field-base:focus {
  transform: translateY(-1px);
}

.field-base option {
  color: #fff;
  background: #0f172a;
}

.input-error {
  border-color: rgba(248, 113, 113, 0.75) !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: rgb(203 213 225);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: rgb(167 243 208);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-error {
  background: rgba(239, 68, 68, 0.12);
  color: rgb(254 202 202);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, -34px) scale(1.08); }
  66% { transform: translate(-18px, 20px) scale(0.92); }
}

.animate-blob {
  animation: blob 18s ease-in-out infinite;
}
