:root {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 48 96% 53%;
  --primary-foreground: 222.2 84% 4.9%;
  --secondary: 45 93% 47%;
  --secondary-foreground: 222.2 84% 4.9%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 48 96% 53%;
  --accent-foreground: 222.2 84% 4.9%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 48 96% 53%;
  --success: 48 96% 53%;
  --warning: 48 96% 53%;
  --radius: 0.5rem;
}

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background-color: hsl(222.2, 84%, 4.9%);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  line-height: 1.5;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, hsl(48, 96%, 53%, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, hsl(48, 96%, 53%, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, hsl(48, 96%, 53%, 0.02) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.card {
  background-color: hsl(222.2, 84%, 4.9%);
  background: hsl(var(--card));
  border: 1px solid hsl(48, 96%, 53%, 0.2);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 0 0 1px hsl(48, 96%, 53%, 0.05);
  backdrop-filter: blur(8px);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-family: "DM Sans", sans-serif;
}

.input {
  display: flex;
  height: 2.75rem;
  width: 100%;
  border-radius: calc(var(--radius));
  border: 1px solid hsl(217.2, 32.6%, 17.5%);
  background-color: hsl(222.2, 84%, 4.9%);
  background: hsl(var(--background));
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: all 0.2s ease-in-out;
  margin-bottom: 1rem;
  font-family: "DM Sans", sans-serif;
}

.input:focus {
  outline: none;
  border-color: hsl(48, 96%, 53%);
  box-shadow: 0 0 0 3px hsl(48, 96%, 53%, 0.1);
  background: hsl(var(--background));
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: calc(var(--radius));
  font-size: 0.875rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.button-primary {
  background-color: hsl(48, 96%, 53%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 2px 4px hsl(48, 96%, 53%, 0.2);
}

.button-primary:hover {
  background-color: hsl(45, 93%, 47%);
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px hsl(48, 96%, 53%, 0.3);
}

.button-success {
  background-color: hsl(48, 96%, 53%);
  background: hsl(var(--success));
  color: hsl(222.2, 84%, 4.9%);
  box-shadow: 0 2px 4px hsl(48, 96%, 53%, 0.2);
}

.button-success:hover {
  background-color: hsl(45, 93%, 47%);
  background: hsl(var(--success) / 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px hsl(48, 96%, 53%, 0.3);
}

.button-destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  box-shadow: 0 2px 4px hsl(var(--destructive) / 0.2);
}

.button-destructive:hover {
  background: hsl(var(--destructive) / 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px hsl(var(--destructive) / 0.3);
}

.alert {
  border-radius: calc(var(--radius));
  border: 1px solid;
  padding: 1rem;
  margin: 1rem 0;
  display: flex;
  align-items: start;
  gap: 0.75rem;
  font-family: "DM Sans", sans-serif;
  backdrop-filter: blur(4px);
}

.alert-processing {
  border-color: hsl(48, 96%, 53%, 0.3);
  background-color: hsl(48, 96%, 53%, 0.1);
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
}

.alert-success {
  border-color: hsl(48, 96%, 53%, 0.3);
  background-color: hsl(48, 96%, 53%, 0.1);
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

.alert-destructive {
  border-color: hsl(0, 62.8%, 30.6%, 0.3);
  background-color: hsl(0, 62.8%, 30.6%, 0.1);
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsl(222.2, 84%, 4.9%);
  background: hsl(var(--background));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  border-radius: 50%;
  animation: pulse 2s infinite;
  border: 2px solid hsl(48, 96%, 53%, 0.2);
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid hsl(217.2, 32.6%, 17.5%);
  border-top: 3px solid hsl(48, 96%, 53%);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.w-full {
  width: 100%;
}

.gradient-text {
  background: linear-gradient(135deg, hsl(48, 96%, 53%) 0%, hsl(45, 93%, 47%) 50%, hsl(48, 96%, 53%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 640px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .card {
    margin: 1rem 0;
  }

  .card-title {
    font-size: 1.5rem;
  }
}