:root {
  --background: hsl(220, 20%, 6%);
  --foreground: hsl(210, 40%, 98%);

  --card: hsl(220, 20%, 10%);
  --card-foreground: hsl(210, 40%, 98%);

  --primary: hsl(185, 100%, 50%);
  --primary-foreground: hsl(220, 20%, 6%);

  --secondary: hsl(220, 20%, 14%);
  --secondary-foreground: hsl(210, 40%, 98%);

  --muted: hsl(220, 15%, 18%);
  --muted-foreground: hsl(215, 20%, 65%);

  --accent: hsl(280, 100%, 65%);
  --accent-foreground: hsl(210, 40%, 98%);

  --border: hsl(220, 20%, 18%);
  --radius: 0.75rem;

  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
  font-family: var(--font-sans);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Layout ---------- */

.container {
  max-width: 1300px;
  margin: auto;
  /* padding: 85px 20px; */
  padding: 10px 1.5rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Glass / Cards ---------- */

.glass-card {
  background: hsl(220 20% 10% / 0.4);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 30px;
}

/* ---------- Branding ---------- */

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--foreground);
}

.logo span {
  color: var(--foreground);
}

.gradient-text {
  background: linear-gradient(90deg,
      var(--primary),
      var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Navigation ---------- */

.back-btn {
  color: var(--muted-foreground);
  text-decoration: none;
}

.back-btn:hover {
  color: var(--primary);
}

/* ---------- Titles ---------- */

.title {
  text-align: center;
  margin-bottom: 40px;
}

.title p {
  color: var(--muted-foreground);
}

/* ---------- Form ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

input,
select {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
}

input::placeholder {
  color: var(--muted-foreground);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

#teamSize {
  color: hsl(215, 20%, 65%);
}

.member-card {
  margin-top: 20px;
}

/* error css */

.field {
  display: flex;
  flex-direction: column;
}

.error-text {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 6px;
}

.input-error {
  border-color: #ef4444 !important;
}



/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: hsla(185, 100%, 50%, 0.9);
}

.btn-lg {
  font-size: 1.125rem;
}

/* ---------- Glow ---------- */

.glow-box {
  box-shadow:
    0 0 30px hsl(185 100% 50% / 0.25),
    0 0 60px hsl(185 100% 50% / 0.15);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 20px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* ===============================
   PRELOADER
================================ */

#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0b1f2a, #060b10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

#preloader p {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 2px;
  color: hsl(185, 100%, 50%);
  text-transform: uppercase;
  opacity: 0.85;
}

/* Loader animation */
.loader {
  display: flex;
  gap: 12px;
}

.loader span {
  width: 14px;
  height: 14px;
  background: hsl(185, 100%, 50%);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 15px hsla(185, 100%, 50%, 0.8);
}

.loader span:nth-child(1) {
  animation-delay: 0s;
}
.loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 80%, 100% {
    transform: scale(0.4);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
