:root {
  --mp-orange: #B8E351; /* Keeping the var name for compatibility but using Lime */
  --mp-orange-hover: #C5EF60;
  --mp-bg: #050607;
  --mp-text: #ffffff;
  --mp-muted: #8e9e92;
  --mp-border: rgba(184, 227, 81, 0.15);
  --mp-border-strong: rgba(184, 227, 81, 0.3);
  --mp-glass: rgba(35, 67, 12, 0.3);
  --mp-glass-soft: rgba(35, 67, 12, 0.15);
  --mp-success: #B8E351;
  --mp-error: #ef4444;
  --mp-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mp-mono: "JetBrains Mono", ui-monospace, monospace;
  --mp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mp-radius: 1rem;
  --mp-radius-xl: 1.5rem;
  --mp-t-fast: 150ms;
  --mp-t: 280ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--mp-font);
  background: var(--mp-bg);
  color: var(--mp-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
/* canvas sized by JS / absolute stage — do not force height:auto */
a { color: inherit; text-decoration: none; }
button, .btn-primary, .btn-secondary, a[role="button"] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mp-orange); outline-offset: 3px; }

.grid-bg {
  background-image:
    linear-gradient(rgba(184, 227, 81, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 227, 81, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.glass-card {
  background: var(--mp-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--mp-orange);
  color: #0a0f0f;
  font-family: var(--mp-font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 1.5rem;
  min-height: 3rem;
  border: none;
  border-radius: 0.75rem;
  transition: background var(--mp-t-fast) var(--mp-ease), transform var(--mp-t-fast) var(--mp-ease), box-shadow var(--mp-t) var(--mp-ease);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover {
  background-color: var(--mp-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
  color: #0a0f0f;
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--mp-text);
  font-family: var(--mp-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.5rem;
  min-height: 3rem;
  border: 1px solid var(--mp-border-strong);
  border-radius: 0.75rem;
  transition: background var(--mp-t-fast) var(--mp-ease), border-color var(--mp-t-fast) var(--mp-ease), transform var(--mp-t-fast) var(--mp-ease);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover {
  border-color: rgba(255, 107, 53, 0.45);
  background: rgba(255, 107, 53, 0.08);
  color: var(--mp-text);
}
.btn-secondary:active { transform: scale(0.97); }

.btn-block { width: 100%; }
.btn-sm { min-height: 2.75rem; padding: 0.65rem 1.1rem; font-size: 0.875rem; }

.auth-input {
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: var(--mp-font);
  font-size: 16px; /* prevents iOS zoom on focus */
  border-radius: 1rem;
  padding: 0.85rem 1.25rem;
  transition: border-color var(--mp-t-fast) var(--mp-ease), box-shadow var(--mp-t-fast) var(--mp-ease);
  outline: none;
  min-width: 0;
}
.auth-input::placeholder { color: #64748b; }
.auth-input:focus {
  border-color: #FF6B35;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.input-wrap { position: relative; min-width: 0; flex: 1; }
.input-wrap .prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mp-muted);
  display: flex;
  pointer-events: none;
}
.input-wrap .auth-input.has-prefix { padding-left: 2.85rem; }
.input-wrap .suffix {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--mp-muted);
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
}
.input-wrap .suffix:hover { color: #fff; background: rgba(255,255,255,0.06); }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mp-muted);
  margin-bottom: 0.45rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s var(--mp-ease) forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-fade-in-up { opacity: 1; }
  .btn-primary:hover, .btn-secondary:hover { transform: none; }
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.text-orange { color: var(--mp-orange); }
.text-muted { color: var(--mp-muted); }

/* Shared: prevent long code / URLs blowing layout */
.break-safe { overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 479px) {
  .btn-primary, .btn-secondary { width: 100%; }
}
