.signup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 40px;
  padding: 32px 0 64px;
}

.signup-media {
  position: relative;
  min-height: 340px;
  display: grid;
  place-content: center;
}

.media-layer {
  position: absolute;
  border-radius: 999px;
  filter: drop-shadow(0 24px 48px rgba(15, 17, 21, 0.12));
}

.media-layer.primary {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at top, #f8fafc, #dbeafe);
}

.media-layer.secondary {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at bottom, #fdf2f8, #fee2e2);
  transform: translate(28px, 18px);
}

.media-accent {
  position: absolute;
  width: 64px;
  bottom: 32px;
  left: 36px;
  opacity: 0.7;
}

.media-avatar {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 16px 32px rgba(15, 17, 21, 0.15);
  background: linear-gradient(135deg, #fdf2f8, #e0e7ff);
}

.media-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.4rem);
  color: #0f172a;
}

.main-avatar {
  width: 220px;
  height: 220px;
  transform: translate(0, 12px);
}

.top-avatar {
  width: 88px;
  height: 88px;
  top: 26px;
  right: 40px;
}

.bottom-avatar {
  width: 76px;
  height: 76px;
  bottom: 20px;
  left: 12px;
}

.signup-card {
  background: rgba(22, 26, 34, 0.85);
  border-radius: 24px;
  padding: 36px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow: 0 24px 40px rgba(15, 17, 21, 0.25);
  color: var(--fg);
  display: grid;
  gap: 24px;
}

.signup-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.2rem);
}

.signup-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.signup-form {
  display: grid;
  gap: 16px;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 17, 21, 0.65);
}

.field input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 1rem;
}

.field input::placeholder {
  color: rgba(226, 232, 240, 0.65);
}

.field input:focus {
  outline: none;
}

.icon {
  font-size: 1.1rem;
}

.toggle {
  border: none;
  background: none;
  color: rgba(226, 232, 240, 0.8);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
}

.password-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #34d399;
}

.password-hint.success {
  color: #facc15;
}

.cta {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.35);
}

.cta:hover,
.cta:focus {
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.terms {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.terms a,
.signin a {
  color: var(--accent);
  text-decoration: none;
}

.terms a:hover,
.signin a:hover {
  text-decoration: underline;
}

.signin {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 960px) {
  .signup {
    gap: 24px;
  }
  .signup-card {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .signup {
    padding-top: 16px;
  }
  .signup-card {
    padding: 28px;
    border-radius: 20px;
  }
  .media-layer.primary {
    width: 260px;
    height: 260px;
  }
  .media-layer.secondary {
    width: 210px;
    height: 210px;
    transform: translate(18px, 12px);
  }
  .main-avatar {
    width: 180px;
    height: 180px;
  }
}


.form-errors {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 0.9rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 18px;
}




